2021-10-10 12:55:53 +02:00
|
|
|
val coroutinesVersion: String by project
|
|
|
|
val kotlinVersion: String by project
|
2020-09-20 12:29:25 +02:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
`java-platform`
|
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "de.pheerai"
|
2023-09-04 11:10:57 +02:00
|
|
|
version = "0.0.13-SNAPSHOT"
|
2020-09-20 12:29:25 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2021-02-21 13:59:17 +01:00
|
|
|
google()
|
2020-09-20 12:29:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
javaPlatform {
|
|
|
|
allowDependencies()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-10-10 12:55:53 +02:00
|
|
|
api(platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion"))
|
|
|
|
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:$coroutinesVersion"))
|
2020-09-20 12:29:25 +02:00
|
|
|
|
|
|
|
api("org.jetbrains.kotlinx", "kotlinx-coroutines-core")
|
2021-06-28 18:25:42 +02:00
|
|
|
api("org.jetbrains.kotlinx", "kotlinx-coroutines-core-jvm")
|
2020-09-20 12:29:25 +02:00
|
|
|
|
2021-02-21 13:59:17 +01:00
|
|
|
api("com.github.ajalt.clikt", "clikt") {
|
|
|
|
version { cliktConstraints() }
|
|
|
|
}
|
|
|
|
api("org.jsoup", "jsoup") {
|
|
|
|
version { jsoupConstraints() }
|
|
|
|
}
|
2020-09-20 12:29:25 +02:00
|
|
|
|
2021-02-21 13:59:17 +01:00
|
|
|
api("org.jetbrains.kotlinx", "kotlinx-html-jvm") {
|
|
|
|
version { kotlinxHtmlConstraints() }
|
|
|
|
}
|
2020-09-20 12:29:25 +02:00
|
|
|
|
2021-02-21 13:59:17 +01:00
|
|
|
api("io.kotest", "kotest-runner-junit5-jvm") {
|
|
|
|
version { kotestConstraints() }
|
|
|
|
}
|
|
|
|
api("io.kotest", "kotest-assertions-core-jvm") {
|
|
|
|
version { kotestConstraints() }
|
|
|
|
}
|
2020-09-20 12:29:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
2021-02-21 13:59:17 +01:00
|
|
|
create<MavenPublication>("CrawlerBom") {
|
2020-09-20 12:29:25 +02:00
|
|
|
from(components["javaPlatform"])
|
|
|
|
}
|
|
|
|
}
|
2021-02-21 14:38:16 +01:00
|
|
|
repositories {
|
|
|
|
maven {
|
2023-09-04 11:28:47 +02:00
|
|
|
name = "Gitea"
|
|
|
|
url = uri("https://git.f3l.de/api/packages/pheerai/maven/")
|
2021-02-21 14:38:16 +01:00
|
|
|
credentials(HttpHeaderCredentials::class.java) {
|
2023-09-04 11:16:51 +02:00
|
|
|
name = "Authorization"
|
2021-02-21 14:38:16 +01:00
|
|
|
value = System.getenv("CI_JOB_TOKEN")
|
|
|
|
}
|
2021-02-21 14:43:02 +01:00
|
|
|
authentication {
|
2021-02-21 14:49:38 +01:00
|
|
|
create<HttpHeaderAuthentication>("header")
|
2021-02-21 14:43:02 +01:00
|
|
|
}
|
2021-02-21 14:38:16 +01:00
|
|
|
}
|
|
|
|
}
|
2020-09-20 12:29:25 +02:00
|
|
|
}
|
|
|
|
|
2021-02-21 13:59:17 +01:00
|
|
|
fun MutableVersionConstraint.kotestConstraints() {
|
2023-09-04 11:10:57 +02:00
|
|
|
prefer("5.7.1")
|
2022-03-31 20:52:46 +02:00
|
|
|
strictly("[5.0.0,6.0.0[")
|
2021-02-21 13:59:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fun MutableVersionConstraint.kotlinxHtmlConstraints() {
|
2023-09-04 11:10:57 +02:00
|
|
|
prefer("0.9.1")
|
|
|
|
strictly("[0.9.0,1.0.0[")
|
2021-02-21 13:59:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fun MutableVersionConstraint.jsoupConstraints() {
|
2023-09-04 11:10:57 +02:00
|
|
|
prefer("1.16.1")
|
|
|
|
strictly("[1.16.0,1.17.0[")
|
2021-02-21 13:59:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fun MutableVersionConstraint.cliktConstraints() {
|
2023-09-04 11:10:57 +02:00
|
|
|
prefer("4.2.0")
|
|
|
|
strictly("[4.0.0,5.0.0[")
|
2021-02-21 13:59:17 +01:00
|
|
|
}
|