-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (59 loc) · 1.55 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
plugins {
id 'org.moddingx.modgradle.meta' version '5.0.2'
}
repositories {
maven {
name = 'ModMaven'
url = 'https://modmaven.dev/'
}
}
var dev = System.getenv('IS_DEV')?.toBoolean() ?: false
var baseVersion = '21.3'
var modBaseVersion = '1.21.3-4.1'
mod.configure {
modid 'excavar'
group 'de.melanx'
versioning {
if (dev) {
def gitCommitHash = ['git', 'rev-parse', 'HEAD'].execute().text.trim()
constant baseVersion + (gitCommitHash ? "-${gitCommitHash}" : '')
} else {
base modBaseVersion
maven 'https://maven.melanx.de/release'
}
}
neoforge project.hasProperty('neo_version') ? project.neo_version : "${baseVersion}.63"
license 'The Apache License, Version 2.0'
github 'ChaoticTrials/Excavar'
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'
dontInferDefaultVersions()
version '1.21.3'
version '1.21.4'
}
curseforge {
projectId 561528
}
modrinth {
projectId 'u86oU2cO'
}
}
}