File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 6666 with :
6767 name : lambda-nightly
6868 path : |
69- / build/libs/lambda-${{ steps.all.outputs.modVersion }}+${{ steps.all.outputs.minecraftVersion }}-${{ env.COMMIT_HASH }}.jar
69+ build/libs/lambda-${{ steps.all.outputs.modVersion }}+${{ steps.all.outputs.minecraftVersion }}-${{ env.COMMIT_HASH }}.jar
Original file line number Diff line number Diff line change @@ -237,15 +237,17 @@ java {
237237
238238publishing {
239239 val publishType = project.findProperty(" mavenType" ).toString()
240- val mavenUrl = if (project.findProperty(" mavenType" ) == " releases" ) " https://maven.lambda-client.org/releases" else " https://maven.lambda-client.org/snapshots"
241240 val isSnapshots = publishType == " snapshots"
241+ val mavenUrl = if (isSnapshots) " https://maven.lambda-client.org/snapshots" else " https://maven.lambda-client.org/releases"
242+ val mavenVersion =
243+ if (isSnapshots) " $modVersion +$minecraftVersion -SNAPSHOT"
244+ else " $modVersion +$minecraftVersion "
242245
243- publications {
246+ publications {
244247 create<MavenPublication >(" maven" ) {
245248 groupId = mavenGroup
246249 artifactId = modId
247- version = if (isSnapshots) " $modVersion +$minecraftVersion -SNAPSHOT"
248- else " $modVersion +$minecraftVersion "
250+ version = mavenVersion
249251
250252 from(components[" java" ])
251253 }
You can’t perform that action at this time.
0 commit comments