-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.72 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
plugins {
id 'org.moddingx.modgradle.meta' version '5.0.2'
}
repositories {
maven {
url = "https://modmaven.dev/"
}
}
var dev = System.getenv('IS_DEV')?.toBoolean() ?: false
var baseVersion = '21.1'
var libxVersion = '1.21.1-6.0.0'
var jeiVersion = '19.21.0.247'
mod.configure {
modid 'morevanillalib'
group 'de.melanx'
versioning {
if (dev) {
def gitCommitHash = ['git', 'rev-parse', 'HEAD'].execute().text.trim()
constant baseVersion + (gitCommitHash ? "-${gitCommitHash}" : '')
} else {
base baseVersion
maven 'https://maven.melanx.de/release'
}
}
neoforge project.hasProperty('neo_version') ? project.neo_version : "${baseVersion}.118"
license 'The Apache License, Version 2.0'
github 'ChaoticTrials/MoreVanillaLib'
artifacts {
sources {
publishToRepositories()
}
}
changelog {
def lines = defaultChangelog.toString().split('\n')
def filteredChangelog = lines.findAll { !it.startsWith('- [meta]') }.join('\n')
return filteredChangelog
}
publishing {
maven {
name 'melanx'
url 'https://maven.melanx.de/release'
credentials(PasswordCredentials)
}
}
upload {
all {
type 'release'
require 'libx'
optional 'jei'
}
curseforge {
projectId 367254
}
modrinth {
projectId 'CtNNDljK'
}
}
}
dependencies {
annotationProcessor "org.moddingx:LibX:${libxVersion}"
implementation "org.moddingx:LibX:${libxVersion}"
implementation "mezz.jei:jei-1.${baseVersion}-neoforge:${jeiVersion}"
}