feat: update dependency versions in build.gradle.kts for ScalaFX and JavaFX
This commit is contained in:
+5
-1
@@ -1,5 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.sonarqube") version "7.2.3.7755"
|
id("org.sonarqube") version "7.2.3.7755"
|
||||||
|
id("org.scoverage") version "8.1" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "de.nowchess"
|
group = "de.nowchess"
|
||||||
@@ -28,7 +29,10 @@ val versions = mapOf(
|
|||||||
"SCALA_LIBRARY" to "2.13.18",
|
"SCALA_LIBRARY" to "2.13.18",
|
||||||
"SCALATEST" to "3.2.19",
|
"SCALATEST" to "3.2.19",
|
||||||
"SCALATEST_JUNIT" to "0.1.11",
|
"SCALATEST_JUNIT" to "0.1.11",
|
||||||
"SCOVERAGE" to "2.1.1"
|
"SCOVERAGE" to "2.1.1",
|
||||||
|
"SCALAFX" to "21.0.0-R32",
|
||||||
|
"JAVAFX" to "21.0.1",
|
||||||
|
"JUNIT_BOM" to "5.13.4"
|
||||||
)
|
)
|
||||||
extra["VERSIONS"] = versions
|
extra["VERSIONS"] = versions
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("scala")
|
id("scala")
|
||||||
id("org.scoverage") version "8.1"
|
id("org.scoverage")
|
||||||
application
|
application
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,10 +55,10 @@ dependencies {
|
|||||||
implementation(project(":modules:api"))
|
implementation(project(":modules:api"))
|
||||||
|
|
||||||
// ScalaFX dependencies
|
// ScalaFX dependencies
|
||||||
implementation("org.scalafx:scalafx_3:21.0.0-R32")
|
implementation("org.scalafx:scalafx_3:${versions["SCALAFX"]!!}")
|
||||||
|
|
||||||
// JavaFX dependencies for the current platform
|
// JavaFX dependencies for the current platform
|
||||||
val javaFXVersion = "21.0.1"
|
val javaFXVersion = versions["JAVAFX"]!!
|
||||||
val osName = System.getProperty("os.name").lowercase()
|
val osName = System.getProperty("os.name").lowercase()
|
||||||
val platform = when {
|
val platform = when {
|
||||||
osName.contains("win") -> "win"
|
osName.contains("win") -> "win"
|
||||||
@@ -71,7 +71,7 @@ dependencies {
|
|||||||
implementation("org.openjfx:javafx-$module:$javaFXVersion:$platform")
|
implementation("org.openjfx:javafx-$module:$javaFXVersion:$platform")
|
||||||
}
|
}
|
||||||
|
|
||||||
testImplementation(platform("org.junit:junit-bom:5.13.4"))
|
testImplementation(platform("org.junit:junit-bom:${versions["JUNIT_BOM"]!!}"))
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||||
testImplementation("org.scalatest:scalatest_3:${versions["SCALATEST"]!!}")
|
testImplementation("org.scalatest:scalatest_3:${versions["SCALATEST"]!!}")
|
||||||
testImplementation("co.helmethair:scalatest-junit-runner:${versions["SCALATEST_JUNIT"]!!}")
|
testImplementation("co.helmethair:scalatest-junit-runner:${versions["SCALATEST_JUNIT"]!!}")
|
||||||
|
|||||||
Reference in New Issue
Block a user