Upgraded to Kotlin 1.9.21
This commit is contained in:
parent
0216c11e0e
commit
21fffc19a2
4 changed files with 35 additions and 23 deletions
12
.idea/misc.xml
generated
12
.idea/misc.xml
generated
|
@ -1,8 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="EntryPointsManager">
|
<component name="EntryPointsManager">
|
||||||
<pattern value="net.thauvin.erik.JokeApiBuild" method="jacoco" />
|
<pattern value="net.thauvin.erik.JokeApiBuild" method="jacoco" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PDMPlugin">
|
<component name="PDMPlugin">
|
||||||
|
<option name="customRuleSets">
|
||||||
|
<list>
|
||||||
|
<option value="K:\java\semver\config\pmd.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/../../java/bld-generated-version/config/pmd.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/../../java/bld-pitest/config/pmd.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/../../java/bld-jacoco-report/config/pmd.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/../../java/bld-checkstyle/config/pmd.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/../../java/bld-exec/config/pmd.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/../../java/bld-testng/config/pmd.xml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
<option name="skipTestSources" value="false" />
|
<option name="skipTestSources" value="false" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[](https://opensource.org/licenses/BSD-3-Clause)
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||||
[](https://kotlinlang.org/)
|
[](https://kotlinlang.org/)
|
||||||
[](https://github.com/ethauvin/jokeapi/releases/latest)
|
[](https://github.com/ethauvin/jokeapi/releases/latest)
|
||||||
[](https://central.sonatype.com/artifact/net.thauvin.erik/jokeapi)
|
[](https://central.sonatype.com/artifact/net.thauvin.erik/jokeapi)
|
||||||
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/jokeapi/)
|
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/jokeapi/)
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -18,7 +18,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
<artifactId>kotlin-stdlib</artifactId>
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
<version>1.9.20</version>
|
<version>1.9.21</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://github.com/ethauvin/jokeapi</connection>
|
<connection>scm:git:https://github.com/ethauvin/jokeapi.git</connection>
|
||||||
<developerConnection>scm:git:git@github.com:ethauvin/jokeapi.git</developerConnection>
|
<developerConnection>scm:git:git@github.com:ethauvin/jokeapi.git</developerConnection>
|
||||||
<url>https://github.com/ethauvin/jokeapi</url>
|
<url>https://github.com/ethauvin/jokeapi</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
|
@ -34,7 +34,6 @@ package net.thauvin.erik;
|
||||||
import rife.bld.BuildCommand;
|
import rife.bld.BuildCommand;
|
||||||
import rife.bld.Project;
|
import rife.bld.Project;
|
||||||
import rife.bld.extension.CompileKotlinOperation;
|
import rife.bld.extension.CompileKotlinOperation;
|
||||||
import rife.bld.extension.CompileKotlinOptions;
|
|
||||||
import rife.bld.extension.JacocoReportOperation;
|
import rife.bld.extension.JacocoReportOperation;
|
||||||
import rife.bld.extension.dokka.DokkaOperation;
|
import rife.bld.extension.dokka.DokkaOperation;
|
||||||
import rife.bld.extension.dokka.LoggingLevel;
|
import rife.bld.extension.dokka.LoggingLevel;
|
||||||
|
@ -66,11 +65,11 @@ public class JokeApiBuild extends Project {
|
||||||
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL);
|
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL);
|
||||||
|
|
||||||
scope(compile)
|
scope(compile)
|
||||||
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", version(1, 9, 20)))
|
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", version(1, 9, 21)))
|
||||||
.include(dependency("org.json", "json", "20231013"))
|
.include(dependency("org.json", "json", "20231013"))
|
||||||
.include(dependency("net.thauvin.erik.urlencoder", "urlencoder-lib-jvm", version(1, 4, 0)));
|
.include(dependency("net.thauvin.erik.urlencoder", "urlencoder-lib-jvm", version(1, 4, 0)));
|
||||||
scope(test)
|
scope(test)
|
||||||
.include(dependency("org.jetbrains.kotlin", "kotlin-test-junit5", version(1, 9, 20)))
|
.include(dependency("org.jetbrains.kotlin", "kotlin-test-junit5", version(1, 9, 21)))
|
||||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 1)))
|
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 1)))
|
||||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 1)))
|
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 1)))
|
||||||
.include(dependency("com.willowtreeapps.assertk", "assertk-jvm", version(0, 27, 0)));
|
.include(dependency("com.willowtreeapps.assertk", "assertk-jvm", version(0, 27, 0)));
|
||||||
|
@ -85,18 +84,24 @@ public class JokeApiBuild extends Project {
|
||||||
.artifactId(name)
|
.artifactId(name)
|
||||||
.description("Retrieve jokes from Sv443's JokeAPI")
|
.description("Retrieve jokes from Sv443's JokeAPI")
|
||||||
.url("https://github.com/ethauvin/" + name)
|
.url("https://github.com/ethauvin/" + name)
|
||||||
.developer(new PublishDeveloper()
|
.developer(
|
||||||
.id("ethauvin")
|
new PublishDeveloper()
|
||||||
.name("Erik C. Thauvin")
|
.id("ethauvin")
|
||||||
.email("erik@thauvin.net")
|
.name("Erik C. Thauvin")
|
||||||
.url("https://erik.thauvin.net/"))
|
.email("erik@thauvin.net")
|
||||||
.license(new PublishLicense()
|
.url("https://erik.thauvin.net/")
|
||||||
.name("BSD 3-Clause")
|
)
|
||||||
.url("https://opensource.org/licenses/BSD-3-Clause"))
|
.license(
|
||||||
.scm(new PublishScm()
|
new PublishLicense()
|
||||||
.connection("scm:git:https://github.com/ethauvin/" + name)
|
.name("BSD 3-Clause")
|
||||||
.developerConnection("scm:git:git@github.com:ethauvin/" + name + ".git")
|
.url("https://opensource.org/licenses/BSD-3-Clause")
|
||||||
.url("https://github.com/ethauvin/" + name))
|
)
|
||||||
|
.scm(
|
||||||
|
new PublishScm()
|
||||||
|
.connection("scm:git:https://github.com/ethauvin/" + name + ".git")
|
||||||
|
.developerConnection("scm:git:git@github.com:ethauvin/" + name + ".git")
|
||||||
|
.url("https://github.com/ethauvin/" + name)
|
||||||
|
)
|
||||||
.signKey(property("sign.key"))
|
.signKey(property("sign.key"))
|
||||||
.signPassphrase(property("sign.passphrase"));
|
.signPassphrase(property("sign.passphrase"));
|
||||||
|
|
||||||
|
@ -112,11 +117,6 @@ public class JokeApiBuild extends Project {
|
||||||
public void compile() throws IOException {
|
public void compile() throws IOException {
|
||||||
new CompileKotlinOperation()
|
new CompileKotlinOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.compileOptions(
|
|
||||||
new CompileKotlinOptions()
|
|
||||||
.jdkRelease(javaRelease)
|
|
||||||
.verbose(true)
|
|
||||||
)
|
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue