diff --git a/README.md b/README.md index 1bb279d..0d182e8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [](https://opensource.org/licenses/BSD-3-Clause) -[](https://kotlinlang.org/) +[](https://kotlinlang.org/) [](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/bitly-shorten/) [](https://github.com/ethauvin/bitly-shorten/releases/latest) [](https://search.maven.org/search?q=g:%22net.thauvin.erik%22%20AND%20a:%22bitly-shorten%22) diff --git a/build.gradle.kts b/build.gradle.kts index 7f93e67..35b3a6f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,18 +5,18 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import java.net.URL plugins { - id("com.github.ben-manes.versions") version "0.46.0" - id("io.gitlab.arturbosch.detekt") version "1.22.0" + id("com.github.ben-manes.versions") version "0.47.0" + id("io.gitlab.arturbosch.detekt") version "1.23.0" id("java") id("java-library") id("maven-publish") id("net.thauvin.erik.gradle.semver") version "1.0.4" - id("org.jetbrains.dokka") version "1.8.10" - id("org.jetbrains.kotlinx.kover") version "0.6.1" - id("org.sonarqube") version "4.0.0.2929" + id("org.jetbrains.dokka") version "1.8.20" + id("org.jetbrains.kotlinx.kover") version "0.7.2" + id("org.sonarqube") version "4.2.1.3168" id("signing") - kotlin("jvm") version "1.8.20" - kotlin("kapt") version "1.8.20" + kotlin("jvm") version "1.8.22" + kotlin("kapt") version "1.8.22" } group = "net.thauvin.erik" @@ -32,7 +32,7 @@ var semverProcessor = "net.thauvin.erik:semver:1.2.0" val publicationName = "mavenJava" object Versions { - const val OKHTTP = "4.10.0" + const val OKHTTP = "4.11.0" } fun isNonStable(version: String): Boolean { @@ -52,11 +52,11 @@ dependencies { implementation("com.squareup.okhttp3:okhttp:${Versions.OKHTTP}") implementation("com.squareup.okhttp3:logging-interceptor:${Versions.OKHTTP}") - implementation("org.json:json:20230227") + implementation("org.json:json:20230618") testImplementation(kotlin("test")) testImplementation(kotlin("test-junit")) - testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25") + testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.26.1") } kapt { @@ -76,13 +76,24 @@ java { withSourcesJar() } +koverReport { + defaults { + xml { + onCheck = true + } + html { + onCheck = true + } + } +} + sonarqube { properties { property("sonar.projectKey", "ethauvin_$name") 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/xml/report.xml") + property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/report.xml") } } @@ -116,9 +127,6 @@ tasks { destination = file("$projectDir/pom.xml") } - assemble { - dependsOn(koverReport) - } clean { doLast { @@ -191,10 +199,6 @@ tasks { group = PublishingPlugin.PUBLISH_TASK_GROUP dependsOn(wrapper, "deploy", gitTag, publishToMavenLocal) } - - "sonar" { - dependsOn(koverReport) - } } publishing { diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html index 08d498f..b8fe424 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html @@ -61,7 +61,7 @@
Configures the creation parameters of a Bitlink.
See the Bit.ly API for more information.
Provides a builder to create a Bitlink.
Configures the update parameters of a Bitlink.
See the Bit.ly API for more information.
Provides a builder to update a Bitlink.
Provides access to the Bitly API v4.
Provides a data class to hold the JSON response.
The response body.
Bitly error message, if any.
Bitly error description, if any.
HTTP status code,
Determines if Level.SEVERE logging is enabled.
Determines if Level.SEVERE logging is enabled.
Validates a URL.
Validates a URL.
Removes http(s) scheme from string.
Removes http(s) scheme from string.
Builds the full API endpoint URL using the Constants.API_BASE_URL.
Builds the full API endpoint URL using the Constants.API_BASE_URL.