update dependencies

This commit is contained in:
Oliver Rümpelein 2021-10-10 12:55:53 +02:00
parent 2beb40c14d
commit 8edf611381
3 changed files with 13 additions and 17 deletions

View file

@ -1,9 +1,5 @@
buildscript {
extra.apply {
set("coroutinesVersion", "1.5.0")
set("kotlinVersion", "1.5.20")
}
}
val coroutinesVersion: String by project
val kotlinVersion: String by project
plugins {
`java-platform`
@ -11,7 +7,7 @@ plugins {
}
group = "de.pheerai"
version = "0.0.6-SNAPSHOT"
version = "0.0.7-SNAPSHOT"
repositories {
mavenCentral()
@ -23,8 +19,8 @@ javaPlatform {
}
dependencies {
api(platform("org.jetbrains.kotlin:kotlin-bom:${getFromExtra<String>("kotlinVersion")}"))
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:${getFromExtra<String>("coroutinesVersion")}"))
api(platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion"))
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:$coroutinesVersion"))
api("org.jetbrains.kotlinx", "kotlinx-coroutines-core")
api("org.jetbrains.kotlinx", "kotlinx-coroutines-core-jvm")
@ -69,11 +65,8 @@ publishing {
}
}
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
fun MutableVersionConstraint.kotestConstraints() {
prefer("4.6.0")
prefer("4.6.3")
strictly("[4.3.0,5.0.0[")
}
@ -83,8 +76,8 @@ fun MutableVersionConstraint.kotlinxHtmlConstraints() {
}
fun MutableVersionConstraint.jsoupConstraints() {
prefer("1.13.1")
strictly("[1.13.0,1.14.0[")
prefer("1.14.3")
strictly("[1.14.0,1.15.0[")
}
fun MutableVersionConstraint.cliktConstraints() {

View file

@ -1 +1,4 @@
kotlin.code.style=official
coroutinesVersion=1.5.2
kotlinVersion=1.5.31

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists