Switched to UrlEncoder
This commit is contained in:
parent
637503a0b2
commit
bd3ee412fe
5 changed files with 24 additions and 33 deletions
|
@ -1,10 +1,9 @@
|
|||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
import org.jetbrains.dokka.gradle.DokkaTask
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
id("com.github.ben-manes.versions") version "0.45.0"
|
||||
id("com.github.ben-manes.versions") version "0.46.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.22.0"
|
||||
id("java")
|
||||
id("maven-publish")
|
||||
|
@ -31,7 +30,8 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
implementation(platform(kotlin("bom")))
|
||||
|
||||
|
||||
implementation("net.thauvin.erik:urlencoder:1.3.0")
|
||||
implementation("org.json:json:20220924")
|
||||
|
||||
testImplementation(kotlin("test"))
|
||||
|
@ -40,8 +40,9 @@ dependencies {
|
|||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(11))
|
||||
}
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
|
@ -66,10 +67,6 @@ tasks {
|
|||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions.jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
withType<Test> {
|
||||
testLogging {
|
||||
exceptionFormat = TestExceptionFormat.FULL
|
||||
|
@ -77,14 +74,6 @@ tasks {
|
|||
}
|
||||
}
|
||||
|
||||
withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
|
||||
this.jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
withType<io.gitlab.arturbosch.detekt.DetektCreateBaselineTask>().configureEach {
|
||||
this.jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
withType<GenerateMavenPom> {
|
||||
destination = file("$projectDir/pom.xml")
|
||||
}
|
||||
|
@ -149,8 +138,8 @@ publishing {
|
|||
}
|
||||
}
|
||||
scm {
|
||||
connection.set("scm:git://github.com/$gitHub.git")
|
||||
developerConnection.set("scm:git@github.com:$gitHub.git")
|
||||
connection.set("scm:git:https://github.com/$gitHub.git")
|
||||
developerConnection.set("scm:git:git@github.com:$gitHub.git")
|
||||
url.set(mavenUrl)
|
||||
}
|
||||
issueManagement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue