Skip to content

Commit 1e55d9c

Browse files
committed
Move version numbers to gradle.properties
To stop recompiling scripts when releasing
1 parent e009eef commit 1e55d9c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

buildSrc/src/main/kotlin/BotCommands-publish-conventions.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ val canPublish = mavenCentralUsername != null && mavenCentralPassword != null &&
2828

2929
group = "io.github.freya022"
3030
version = Version(
31-
major = "3",
32-
minor = "0",
33-
revision = "0",
34-
classifier = "beta.5",
31+
major = property("version.major").toString(),
32+
minor = property("version.minor").toString(),
33+
revision = property("version.revision").toString(),
34+
classifier = property("version.classifier").toString(),
3535
// isRelease = isCi || canPublish
3636
isDev = !GitUtils.isCI(providers) && !canPublish
3737
)

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
22

3+
version.major=3
4+
version.minor=0
5+
version.revision=0
6+
version.classifier=beta.5
7+
38
org.gradle.configuration-cache=true
49
org.gradle.parallel=true
510
org.gradle.caching=true

0 commit comments

Comments
 (0)