Skip to content

Commit 13c8f4b

Browse files
committed
Fixed jenkins stuff
1 parent 6f09f4a commit 13c8f4b

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

build.gradle

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ apply plugin: "com.matthewprenger.cursegradle"
2121
apply plugin: "maven-publish"
2222

2323
def mod_file = getModFile()
24-
version = getVersion("VERSION", mod_file) + "-1.10.2"
24+
version = getVersion("VERSION", mod_file)
25+
if (System.getenv().BUILD_NUMBER) {
26+
version += "." + System.getenv().BUILD_NUMBER
27+
}
28+
version += "-1.10.2"
2529
group = "mmd"
2630
archivesBaseName = "orespawn"
2731
sourceCompatibility = targetCompatibility = "1.8"
@@ -138,23 +142,23 @@ curseforge {
138142
apiKey = secret.curseforgeAPIKey
139143
project {
140144
id = "245586"
141-
releaseType = "release"
142-
changelog = file("CHANGELOG.txt")
143-
def versionPart = "OreSpawn $project.version"
145+
releaseType = "alpha"
146+
addGameVersion("1.10.2")
147+
def displayVersion = getVersion("VERSION", mod_file)
144148
mainArtifact(jar) {
145-
displayName = versionPart
149+
displayName = "OreSpawn $displayVersion"
146150
}
147151
addArtifact(sourcesJar) {
148-
displayName = "$versionPart Sources"
152+
displayName = "OreSpawn $displayVersion Sources"
149153
}
150154
addArtifact(apiJar) {
151-
displayName = "$versionPart API"
155+
displayName = "OreSpawn $displayVersion API"
152156
}
153157
addArtifact(devJar) {
154-
displayName = "$versionPart Development"
158+
displayName = "OreSpawn $displayVersion Development"
155159
}
156160
addArtifact(javadocJar) {
157-
displayName = "$versionPart Javadoc"
161+
displayName = "OreSpawn $displayVersion Javadoc"
158162
}
159163
}
160164
}

0 commit comments

Comments
 (0)