Upgraded to Kotlin 1.7.20
This commit is contained in:
parent
56fa17703c
commit
1e2f2ccee9
16 changed files with 55 additions and 34 deletions
|
@ -5,14 +5,14 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
|
|||
|
||||
plugins {
|
||||
id("com.github.ben-manes.versions") version "0.42.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.20.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.21.0"
|
||||
id("java")
|
||||
id("maven-publish")
|
||||
id("org.jetbrains.dokka") version "1.6.21"
|
||||
id("org.jetbrains.kotlinx.kover") version "0.5.0"
|
||||
id("org.sonarqube") version "3.3"
|
||||
id("org.jetbrains.dokka") version "1.7.10"
|
||||
id("org.jetbrains.kotlinx.kover") version "0.6.0"
|
||||
id("org.sonarqube") version "3.4.0.2513"
|
||||
id("signing")
|
||||
kotlin("jvm") version "1.6.21"
|
||||
kotlin("jvm") version "1.7.20"
|
||||
}
|
||||
|
||||
group = "net.thauvin.erik"
|
||||
|
@ -27,7 +27,7 @@ var isRelease = "release" in gradle.startParameter.taskNames
|
|||
val publicationName = "mavenJava"
|
||||
|
||||
object Versions {
|
||||
const val OKHTTP = "4.9.3"
|
||||
const val OKHTTP = "4.10.0"
|
||||
}
|
||||
|
||||
fun isNonStable(version: String): Boolean {
|
||||
|
@ -48,12 +48,12 @@ dependencies {
|
|||
implementation("com.squareup.okhttp3:okhttp:${Versions.OKHTTP}")
|
||||
implementation("com.squareup.okhttp3:logging-interceptor:${Versions.OKHTTP}")
|
||||
|
||||
testImplementation("org.testng:testng:7.5")
|
||||
testImplementation("org.testng:testng:7.6.1")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ sonarqube {
|
|||
property("sonar.organization", "ethauvin-github")
|
||||
property("sonar.host.url", "https://sonarcloud.io")
|
||||
property("sonar.sourceEncoding", "UTF-8")
|
||||
property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/report.xml")
|
||||
property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/xml/report.xml")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -117,6 +117,7 @@ tasks {
|
|||
val copyToDeploy by registering(Copy::class) {
|
||||
from(configurations.runtimeClasspath) {
|
||||
exclude("annotations-*.jar")
|
||||
exclude("kotlin-*.jar")
|
||||
}
|
||||
from(jar)
|
||||
into(deployDir)
|
||||
|
@ -125,7 +126,7 @@ tasks {
|
|||
register("deploy") {
|
||||
description = "Copies all needed files to the $deployDir directory."
|
||||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
||||
dependsOn(build, jar)
|
||||
dependsOn(clean, wrapper, build, jar)
|
||||
outputs.dir(deployDir)
|
||||
inputs.files(copyToDeploy)
|
||||
mustRunAfter(clean)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue