From c4b1a8cfcf54b8c422eca3392c42d32913e812bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Sat, 1 May 2021 16:43:27 +0200 Subject: [PATCH] Update starter, fix gradle 8.0 deprecation warnings --- README.md | 2 +- build.gradle | 6 +++--- buildSrc/build.gradle | 3 +-- issuechecker/build.gradle | 10 +--------- issuechecker/cli/build.gradle | 2 +- 5 files changed, 7 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0087efd..cfcc30a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Additionally, it exposes a fat Jar which serves as a CLI. The core dependency is available under: ```groovy -repositories.mavenCenral() +repositories.mavenCentral() dependencies { implementation("com.github.usefulness:issuechecker:x.y.z") diff --git a/build.gradle b/build.gradle index 324ba36..fbdaec7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,8 +1,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - id 'com.starter.config' version '0.25.0' - id 'com.starter.versioning' version '0.25.0' + id 'com.starter.config' version '0.26.2' + id 'com.starter.versioning' version '0.26.2' } commonConfig { @@ -12,7 +12,7 @@ commonConfig { allprojects { tasks.withType(KotlinCompile).configureEach { kotlinOptions { - apiVersion = '1.3' + apiVersion = '1.4' } } diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 979456e..125b254 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -1,11 +1,10 @@ plugins { id 'java-gradle-plugin' id "org.jmailen.kotlinter" version "3.4.3" - id 'org.jetbrains.kotlin.jvm' version '1.4.32' + id 'org.jetbrains.kotlin.jvm' version '1.5.0' } repositories { - google() gradlePluginPortal() } diff --git a/issuechecker/build.gradle b/issuechecker/build.gradle index 4858606..36f2304 100644 --- a/issuechecker/build.gradle +++ b/issuechecker/build.gradle @@ -1,7 +1,5 @@ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile - plugins { - id 'com.starter.library.kotlin' version '0.25.0' + id 'com.starter.library.kotlin' version '0.26.2' id 'kotlin-kapt' id 'com.starter.publishing' } @@ -13,12 +11,6 @@ test { } } -tasks.withType(KotlinCompile).configureEach { - kotlinOptions { - freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" - } -} - dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3" api "com.squareup.okhttp3:okhttp:4.9.1" diff --git a/issuechecker/cli/build.gradle b/issuechecker/cli/build.gradle index cbe115e..e4ad1a3 100644 --- a/issuechecker/cli/build.gradle +++ b/issuechecker/cli/build.gradle @@ -6,7 +6,7 @@ plugins { } application { - mainClassName = "com.project.starter.issuechecker.cli.Main" + mainClass.set("com.project.starter.issuechecker.cli.Main") } test {