Skip to content

Commit

Permalink
fix: passing correct version and autoconfiguration import feature
Browse files Browse the repository at this point in the history
  • Loading branch information
peacecwz committed Apr 5, 2024
1 parent 2727623 commit e5fe105
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ bin/
### Mac OS ###
.DS_Store
**/.idea

examples/
6 changes: 4 additions & 2 deletions core/kordinator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ plugins {
object Versions {
const val COROUTINE_VERSION = "1.8.0"
const val MOCKK_VERSION = "1.12.0"
val LIBRARY_VERSION: String =
(project.findProperty("LIBRARY_VERSION") ?: System.getenv("LIBRARY_VERSION") ?: "0.0.1") as String
}

dependencies {
Expand Down Expand Up @@ -61,7 +63,7 @@ publishing {
create<MavenPublication>("mavenJava") {
groupId = "dev.ceviz"
artifactId = "kordinator"
version = project.findProperty("LIBRARY_VERSION")?.toString() ?: "0.0.1"
version = Versions.LIBRARY_VERSION

from(components["java"])
artifact(sourcesJar.get())
Expand All @@ -71,7 +73,7 @@ publishing {
}

mavenPublishing {
coordinates("dev.ceviz", "kordinator", "0.0.1")
coordinates("dev.ceviz", "kordinator", Versions.LIBRARY_VERSION)

pom {
name.set("Kordinator")
Expand Down
6 changes: 4 additions & 2 deletions libs/spring-kordinator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ object Versions {
const val COROUTINE_VERSION = "1.8.0"
const val SPRING_BOOT = "3.2.4"
const val MOCKK_VERSION = "1.12.0"
val LIBRARY_VERSION: String =
(project.findProperty("LIBRARY_VERSION") ?: System.getenv("LIBRARY_VERSION") ?: "0.0.1") as String
}

tasks.test {
Expand Down Expand Up @@ -64,7 +66,7 @@ publishing {
create<MavenPublication>("mavenJava") {
groupId = "dev.ceviz"
artifactId = "spring-3x-kordinator"
version = project.findProperty("LIBRARY_VERSION")?.toString() ?: "0.0.1"
version = Versions.LIBRARY_VERSION

from(components["java"])
artifact(sourcesJar.get())
Expand All @@ -74,7 +76,7 @@ publishing {
}

mavenPublishing {
coordinates("dev.ceviz", "spring-3x-kordinator", "0.0.1")
coordinates("dev.ceviz", "spring-3x-kordinator", Versions.LIBRARY_VERSION)

pom {
name.set("Spring 3.x Kordinator")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
dev.ceviz.KordinatorConfiguration

0 comments on commit e5fe105

Please sign in to comment.