mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-16 19:55:10 +01:00
Add curse uploading to buildscript
This commit is contained in:
30
build.gradle
30
build.gradle
@@ -9,9 +9,12 @@ buildscript {
|
|||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||||
|
|
||||||
|
boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equals('false');
|
||||||
|
project.buildnumber = System.getenv().BUILD_NUMBER ?: 'custom';
|
||||||
|
|
||||||
group = 'com.tterrag.blur'
|
group = 'com.tterrag.blur'
|
||||||
archivesBaseName = "Blur"
|
archivesBaseName = "Blur"
|
||||||
version = "${mod_version}-${System.getenv().BUILD_NUMBER}"
|
version = "${mod_version}-${buildnumber}"
|
||||||
|
|
||||||
sourceCompatibility = '1.8'
|
sourceCompatibility = '1.8'
|
||||||
targetCompatibility = '1.8'
|
targetCompatibility = '1.8'
|
||||||
@@ -89,4 +92,27 @@ task createResourcePacks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.build.dependsOn createResourcePacks
|
// Not necessary atm
|
||||||
|
// tasks.build.dependsOn createResourcePacks
|
||||||
|
|
||||||
|
tasks.curseforge.enabled = !dev && project.hasProperty('curseforge_key')
|
||||||
|
|
||||||
|
curseforge {
|
||||||
|
if (project.hasProperty('curseforge_key')) {
|
||||||
|
apiKey = project.curseforge_key
|
||||||
|
}
|
||||||
|
|
||||||
|
project {
|
||||||
|
id = project.projectId
|
||||||
|
changelog = System.getenv('CHANGELOG') == null || System.getenv('CHANGELOG').equals('none') ? getChangelog() : System.getenv('CHANGELOG')
|
||||||
|
changelogType = 'text'
|
||||||
|
releaseType = project.releaseType
|
||||||
|
addGameVersion '1.9.4'
|
||||||
|
addGameVersion '1.11.2'
|
||||||
|
mainArtifact(jar) {
|
||||||
|
displayName = "Blur ${version}"
|
||||||
|
}
|
||||||
|
addArtifact(apiJar)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ minecraft_version=1.10.2
|
|||||||
forge_version=12.18.3.2297
|
forge_version=12.18.3.2297
|
||||||
mod_version=1.0.0
|
mod_version=1.0.0
|
||||||
|
|
||||||
curse_projectId=231056
|
curse_projectId=268324
|
||||||
release_type=beta
|
release_type=release
|
||||||
Reference in New Issue
Block a user