Use bom for dependencies.

This commit is contained in:
Oliver Rümpelein 2020-09-20 12:24:18 +02:00
parent a9f4740f0c
commit cba501824f

View file

@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript { buildscript {
extra.apply { extra.apply {
set("kotestVersion", "4.2.0") set("pheeraiBomVersion", "0.0.1-SNAPSHOT")
set("kotlinApiVersion", "1.4") set("kotlinApiVersion", "1.4")
set("javaVersion", JavaVersion.VERSION_11) set("javaVersion", JavaVersion.VERSION_11)
} }
@ -21,6 +21,14 @@ plugins {
repositories { repositories {
mavenCentral() mavenCentral()
jcenter()
google()
mavenLocal {
mavenContent {
includeGroup("de.pheerai")
includeGroup("de.pheerai.eap")
}
}
} }
project.version = "0.0.2" project.version = "0.0.2"
@ -32,16 +40,9 @@ java {
} }
dependencies { dependencies {
testImplementation( implementation(enforcedPlatform("de.pheerai:kotlin-native-app-bom:${getFromExtra<String>("pheeraiBomVersion")}"))
group = "io.kotest", testImplementation("io.kotest", "kotest-runner-junit5-jvm")
name = "kotest-runner-junit5-jvm", testImplementation("io.kotest", "kotest-assertions-core-jvm")
version = getFromExtra("kotestVersion")
)
testImplementation(
group = "io.kotest",
name = "kotest-assertions-core-jvm",
version = getFromExtra("kotestVersion")
)
} }
tasks { tasks {
@ -66,7 +67,6 @@ publishing {
version = project.version as String version = project.version as String
from(components["java"]) from(components["java"])
} }
} }
} }