mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
Update buildscript
- Generate sources jar - Include build number
This commit is contained in:
parent
7d6ec7d28f
commit
7810e41308
1 changed files with 9 additions and 2 deletions
11
build.gradle
11
build.gradle
|
@ -18,10 +18,13 @@ plugins {
|
||||||
apply plugin: 'net.minecraftforge.gradle'
|
apply plugin: 'net.minecraftforge.gradle'
|
||||||
apply plugin: 'org.spongepowered.mixin'
|
apply plugin: 'org.spongepowered.mixin'
|
||||||
|
|
||||||
boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equals('false');
|
boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equalsIgnoreCase('false');
|
||||||
|
|
||||||
|
ext.buildnumber = 0
|
||||||
|
project.buildnumber = System.getenv('BUILD_NUMBER') != null ? System.getenv('BUILD_NUMBER') : "custom"
|
||||||
|
|
||||||
|
version = "${mc_update_version}-${mod_version}" + (dev ? ".${buildnumber}" : '')
|
||||||
group = 'jozufozu'
|
group = 'jozufozu'
|
||||||
version = "${mc_update_version}-${mod_version}"
|
|
||||||
archivesBaseName = 'flywheel'
|
archivesBaseName = 'flywheel'
|
||||||
|
|
||||||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
||||||
|
@ -127,6 +130,10 @@ task sourcesJar(type: Jar) {
|
||||||
archiveClassifier.set('sources')
|
archiveClassifier.set('sources')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives jar, sourcesJar
|
||||||
|
}
|
||||||
|
|
||||||
tasks.curseforge.enabled = !dev && project.hasProperty('jozu_curseforge_key')
|
tasks.curseforge.enabled = !dev && project.hasProperty('jozu_curseforge_key')
|
||||||
|
|
||||||
curseforge {
|
curseforge {
|
||||||
|
|
Loading…
Reference in a new issue