62 lines
1.6 KiB
Text
62 lines
1.6 KiB
Text
|
buildscript {
|
||
|
extra.apply {
|
||
|
set("coroutinesVersion", "1.3.9")
|
||
|
set("jsoupVersion", "1.13.1")
|
||
|
set("kotestVersion", "4.2.3")
|
||
|
set("kotlinxHtmlVersion", "0.7.2")
|
||
|
set("cliktVersion", "3.0.1")
|
||
|
set("kotlinVersion", "1.4.10")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
plugins {
|
||
|
`java-platform`
|
||
|
`maven-publish`
|
||
|
}
|
||
|
|
||
|
group = "de.pheerai"
|
||
|
version = "0.0.1-SNAPSHOT"
|
||
|
|
||
|
repositories {
|
||
|
jcenter()
|
||
|
mavenCentral()
|
||
|
mavenLocal {
|
||
|
mavenContent {
|
||
|
includeGroup("de.pheerai.eap")
|
||
|
includeGroup("de.pheerai")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
javaPlatform {
|
||
|
allowDependencies()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
api(platform("org.jetbrains.kotlin:kotlin-bom:${getFromExtra<String>("kotlinVersion")}"))
|
||
|
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:${getFromExtra<String>("coroutinesVersion")}"))
|
||
|
|
||
|
api("org.jetbrains.kotlinx", "kotlinx-coroutines-core")
|
||
|
|
||
|
api("com.github.ajalt.clikt", "clikt", getFromExtra("cliktVersion"))
|
||
|
api("org.jsoup", "jsoup", getFromExtra("jsoupVersion"))
|
||
|
|
||
|
api("org.jetbrains.kotlinx", "kotlinx-html-jvm", getFromExtra("kotlinxHtmlVersion"))
|
||
|
|
||
|
api("io.kotest", "kotest-runner-junit5-jvm", getFromExtra("kotestVersion"))
|
||
|
api("io.kotest", "kotest-assertions-core-jvm", getFromExtra("kotestVersion"))
|
||
|
}
|
||
|
|
||
|
|
||
|
publishing {
|
||
|
publications {
|
||
|
create<MavenPublication>("myPlatform") {
|
||
|
from(components["javaPlatform"])
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
inline fun <reified T> getFromProperties(name: String): T = project.properties[name] as T
|
||
|
inline fun <reified T> getFromExtra(name: String): T = extra[name] as T
|