Skip to content

Commit

Permalink
Fix nightlies version formatting
Browse files Browse the repository at this point in the history
buildNumber was not included because of a change in the execution order
  • Loading branch information
RedNesto committed Sep 13, 2024
1 parent ee67b74 commit 51342fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 0 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ plugins {
`mcdev-publishing`
}

val ideaVersionName: String by project
val coreVersion: String by project

val gradleToolingExtension: Configuration by configurations.creating
Expand All @@ -43,7 +42,6 @@ val testLibs: Configuration by configurations.creating {
}

group = "com.demonwav.mcdev"
version = "$ideaVersionName-$coreVersion"

val gradleToolingExtensionSourceSet: SourceSet = sourceSets.create("gradle-tooling-extension") {
configurations.named(compileOnlyConfigurationName) {
Expand Down
11 changes: 11 additions & 0 deletions buildSrc/src/main/kotlin/mcdev-core.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ plugins {
id("org.cadixdev.licenser")
}

val ideaVersionName: String by project
val coreVersion: String by project
val buildNumber: String? by project

version = "$ideaVersionName-$coreVersion"

// Build numbers are used for nightlies
if (buildNumber != null) {
version = "$version-$buildNumber"
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
Expand Down
4 changes: 0 additions & 4 deletions buildSrc/src/main/kotlin/mcdev-publishing.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ plugins {
}

tasks.publishPlugin {
// Build numbers are used for nightlies
properties["buildNumber"]?.let { buildNumber ->
project.version = "${project.version}-$buildNumber"
}
properties["mcdev.deploy.token"]?.let { deployToken ->
token.set(deployToken.toString())
}
Expand Down
4 changes: 0 additions & 4 deletions obfuscation-explorer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@ plugins {
`mcdev-publishing`
}

val ideaVersionName: String by project
val coreVersion: String by project

val jflex by configurations
val jflexSkeleton by configurations
val grammarKit by configurations

group = "io.mcdev.obfex"
version = "$ideaVersionName-$coreVersion"

intellijPlatform {
projectName = "Obfuscation Explorer"
Expand Down

0 comments on commit 51342fb

Please sign in to comment.