diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml
index 8616a4f..bbab7f4 100644
--- a/.github/workflows/bld.yml
+++ b/.github/workflows/bld.yml
@@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
java-version: [17, 21, 24]
- kotlin-version: [1.9.25, 2.1.10]
+ kotlin-version: [1.9.25, 2.1.20]
steps:
- name: Checkout source repository
diff --git a/README.md b/README.md
index f892b2d..cdf7df5 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# [Pinboard](https://pinboard.in) Poster for Kotlin, Java and Android
[](https://opensource.org/licenses/BSD-3-Clause)
-[](https://kotlinlang.org/)
+[](https://kotlinlang.org/)
[](https://rife2.com/bld)
[](https://github.com/ethauvin/pinboard-poster/releases/latest)
[](https://central.sonatype.com/artifact/net.thauvin.erik/pinboard-poster)
diff --git a/examples/gradle/kotlin/build.gradle.kts b/examples/gradle/kotlin/build.gradle.kts
index 74e5812..c6906e1 100644
--- a/examples/gradle/kotlin/build.gradle.kts
+++ b/examples/gradle/kotlin/build.gradle.kts
@@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("application")
id("com.github.ben-manes.versions") version "0.51.0"
- kotlin("jvm") version "2.1.10"
+ kotlin("jvm") version "2.1.20"
}
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
diff --git a/pom.xml b/pom.xml
index 4850a68..64767c7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
net.thauvin.erik
pinboard-poster
- 1.2.0
+ 1.2.1-SNAPSHOT
pinboard-poster
A small library for posting to Pinboard
https://github.com/ethauvin/pinboard-poster
@@ -18,19 +18,19 @@
org.jetbrains.kotlin
kotlin-stdlib
- 2.1.10
+ 2.1.20
compile
org.jetbrains.kotlin
kotlin-stdlib-common
- 2.1.10
+ 2.1.20
compile
org.jetbrains.kotlin
kotlin-stdlib-jdk8
- 2.1.10
+ 2.1.20
compile
diff --git a/src/bld/java/net/thauvin/erik/pinboard/PinboardPosterBuild.java b/src/bld/java/net/thauvin/erik/pinboard/PinboardPosterBuild.java
index 642c275..60ab38a 100644
--- a/src/bld/java/net/thauvin/erik/pinboard/PinboardPosterBuild.java
+++ b/src/bld/java/net/thauvin/erik/pinboard/PinboardPosterBuild.java
@@ -39,6 +39,7 @@ import rife.bld.extension.DokkaOperation;
import rife.bld.extension.JacocoReportOperation;
import rife.bld.extension.dokka.LoggingLevel;
import rife.bld.extension.dokka.OutputFormat;
+import rife.bld.extension.kotlin.CompileOptions;
import rife.bld.operations.exceptions.ExitStatusException;
import rife.bld.publish.PomBuilder;
import rife.bld.publish.PublishDeveloper;
@@ -60,7 +61,7 @@ public class PinboardPosterBuild extends Project {
public PinboardPosterBuild() {
pkg = "net.thauvin.erik";
name = "pinboard-poster";
- version = version(1, 2, 0);
+ version = version(1, 2, 1, "SNAPSHOT");
mainClass = pkg + ".PinboardPoster";
@@ -70,7 +71,7 @@ public class PinboardPosterBuild extends Project {
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL);
final var okHttp = version(4, 12, 0);
- final var kotlin = version(2, 1, 10);
+ final var kotlin = version(2, 1, 20);
scope(compile)
// Kotlin
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin))
@@ -124,8 +125,11 @@ public class PinboardPosterBuild extends Project {
@BuildCommand(summary = "Compiles the Kotlin project")
@Override
public void compile() throws Exception {
+ final var options = new CompileOptions();
+ options.jvmOptions().add("--enable-native-access=ALL-UNNAMED");
new CompileKotlinOperation()
.fromProject(this)
+ .compileOptions(options)
.execute();
}