Commit c7caff6a6541081a1db27f1f96df678ac32097ba
1 parent
b060114d
Add branding for jenkins
Showing
1 changed file
with
9 additions
and
0 deletions
build.gradle
... | ... | @@ -41,6 +41,7 @@ ext { |
41 | 41 | classifier = project.hasProperty("buildType") ? buildType : 'SNAPSHOT' |
42 | 42 | isReleaseBuild = "RELEASE".equals(project.classifier.toUpperCase()) |
43 | 43 | mavenRepo = project.isReleaseBuild ? "mavenUrl" : "mavenSnapshotUrl" |
44 | + brand = project.hasProperty("jenkins") ? "${project.mcVersion}-SNAPSHOT-r${System.env.GIT_COMMIT.take(7).toUpperCase()}-b${System.env.BUILD_NUMBER}-${System.env.BUILD_ID}" : "" | |
44 | 45 | |
45 | 46 | // Extended project information |
46 | 47 | projectName = 'LiteLoader' |
... | ... | @@ -137,6 +138,14 @@ afterEvaluate { |
137 | 138 | mc.replacer.putReplacement '{RUN_CLIENT_TWEAKER}', minecraft.tweakClass |
138 | 139 | } |
139 | 140 | |
141 | +processResources { | |
142 | + inputs.property "brand", project.brand | |
143 | + from (sourceSets.main.resources.srcDirs) { | |
144 | + include 'liteloader.properties' | |
145 | + filter { line -> line.startsWith('brand=') ? line + project.brand : line } | |
146 | + } | |
147 | +} | |
148 | + | |
140 | 149 | // manifest entries for all jars |
141 | 150 | def jarManifest = { |
142 | 151 | mainAttributes ( | ... | ... |