Skip to content

Commit

Permalink
Set modules version in one place for all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar committed Dec 12, 2024
1 parent 9fa1617 commit 5273828
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ plugins {
}

subprojects {
version = findProperty("storytale.deploy.version")
?: error("'storytale.deploy.version' was not set")

plugins.withId("maven-publish") {
configureIfExists<PublishingExtension> {
repositories {
Expand Down
1 change: 0 additions & 1 deletion modules/compiler-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ sourceSets {
}

group = "org.jetbrains.compose.storytale"
version = libs.versions.storytale.get()

val emptyJavadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
Expand Down
1 change: 0 additions & 1 deletion modules/gallery/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ kotlin {
}

group = "org.jetbrains.compose.storytale"
version = libs.versions.storytale.get()

publishing {}

Expand Down
1 change: 0 additions & 1 deletion modules/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {
}

group = "org.jetbrains.compose.storytale"
version = libs.versions.storytale.get()

val emptyJavadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
Expand Down
1 change: 0 additions & 1 deletion modules/runtime-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ kotlin {
}

group = "org.jetbrains.compose.storytale"
version = libs.versions.storytale.get()

publishing {}

Expand Down
9 changes: 0 additions & 9 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
rootProject.name = "Storytale"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

val storytaleVersion =
providers.gradleProperty("storytale.deploy.version").orNull?.takeIf(String::isNotBlank)

pluginManagement {
repositories {
google {
Expand Down Expand Up @@ -31,12 +28,6 @@ dependencyResolutionManagement {
mavenCentral()
mavenLocal()
}

if (storytaleVersion != null) {
versionCatalogs.register("libs") {
version("storytale", storytaleVersion)
}
}
}

include(":modules:gallery")
Expand Down

0 comments on commit 5273828

Please sign in to comment.