-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (41 loc) · 1.15 KB
/
build.gradle
File metadata and controls
49 lines (41 loc) · 1.15 KB
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
plugins {
id 'potential-lamp'
id 'maven-publish'
}
group = 'io.github.antiquitymc.potential-lamp'
def minecraft_version = "c0.30_01c"
def env = System.getenv()
def runNumber = env.GITHUB_RUN_NUMBER ? env.GITHUB_RUN_NUMBER.toInteger() + 15 : 'local'
version = "$minecraft_version-$runNumber"
potentialLamp {
minecraftVersion = minecraft_version
enigmaVersion = project.enigma_version
}
import juuxel.chocostitch.CommandFixNesting
mapIntermediaryJar {
doLast {
CommandFixNesting.run(outputJar.get().asFile)
}
}
tasks.register('prepareRelease', juuxel.potentiallamp.gradle.task.SetGithubOutputs) {
dependsOn 'assemble'
outputProperties = provider {
String title = "Build $runNumber for $minecraft_version ($version)"
[ version: project.version.toString(), title: title ]
}
}
publishing {
publications.register('mappings', MavenPublication) {
artifactId = 'mappings'
artifact(tasks.named('obfToNamedTinyJar')) {
classifier = 'obfToNamed'
}
artifact(tasks.named('obfToNamedITinyJar')) {
classifier = 'obfToNamedI'
}
}
publications.register('constants', MavenPublication) {
artifactId = 'constants'
artifact tasks.named('constantsJar')
}
}