diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 76bd6c9..eb6c31c 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java-version }} - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "zulu" java-version: ${{ matrix.java-version }} diff --git a/README.md b/README.md index 089a93e..0e2b404 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,6 @@ optimizations have a significantly beneficial impact on performance of encoding compared to other solutions like the standard `URLEncoder` in the JDK or `UriUtils` in Spring. - ## Examples (TL;DR) ```kotlin @@ -61,7 +60,7 @@ repositories { } dependencies { - implementation("net.thauvin.erik.urlencoder:urlencoder-lib:1.4.0") + implementation("net.thauvin.erik.urlencoder:urlencoder-lib:1.5.0") } ``` @@ -72,11 +71,11 @@ to the artifact URL. net.thauvin.erik.urlencoder urlencoder-lib-jvm - 1.4.0 + 1.5.0 ``` -Instructions for using with Ivy, etc. can be found on +Instructions for using with Ivy, etc. can be found on [Maven Central](https://central.sonatype.com/search?namespace=net.thauvin.erik.urlencoder). ## Standalone usage @@ -90,7 +89,7 @@ You have two options: The usage is as follows: -``` +```console Encode and decode URL components defensively. -e encode (default) -d decode @@ -98,7 +97,7 @@ Encode and decode URL components defensively. ### Running with Gradle -```shell +```console ./gradlew run --quiet --args="-e 'a test &'" # -> a%20test%20%26 ./gradlew run --quiet --args="%#okékÉȢ" # -> %25%23ok%C3%A9k%C3%89%C8%A2 @@ -109,13 +108,13 @@ Encode and decode URL components defensively. First build the jar file: -```shell +```console ./gradlew fatJar ``` Then run it: -```shell +```console java -jar urlencoder-app/build/libs/urlencoder-*all.jar -e "a test &" # -> a%20test%20%26 java -jar urlencoder-app/build/libs/urlencoder-*all.jar "%#okékÉȢ" # -> %25%23ok%C3%A9k%C3%89%C8%A2 diff --git a/build.gradle.kts b/build.gradle.kts index 5b4c21e..cd67874 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { } group = "net.thauvin.erik.urlencoder" -version = "1.5.0-SNAPSHOT" +version = "1.5.0" dependencies { kover(projects.urlencoderLib) diff --git a/urlencoder-app/pom.xml b/urlencoder-app/pom.xml deleted file mode 100644 index e5bda64..0000000 --- a/urlencoder-app/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - 4.0.0 - net.thauvin.erik.urlencoder - urlencoder-app-jvm - 1.4.0 - UrlEncoder for Kotlin Multiplatform - A simple defensive library to encode/decode URL components - https://github.com/ethauvin/urlencoder - - - The Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - gbevin - Geert Bevin - gbevin@uwyn.com - https://github.com/gbevin - - - ethauvin - Erik C. Thauvin - erik@thauvin.net - https://erik.thauvin.net/ - - - aSemy - Adam - https://github.com/aSemy - - - - scm:git://github.com/ethauvin/urlencoder.git - scm:git@github.com:ethauvin/urlencoder.git - https://github.com/ethauvin/urlencoder - - - GitHub - https://github.com/ethauvin/urlencoder/issues - - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - 1.9.10 - compile - - - org.jetbrains.kotlin - kotlin-stdlib-common - 1.9.10 - compile - - - net.thauvin.erik.urlencoder - urlencoder-lib-jvm - 1.4.0 - runtime - - - diff --git a/urlencoder-lib/pom.xml b/urlencoder-lib/pom.xml deleted file mode 100644 index 2876b60..0000000 --- a/urlencoder-lib/pom.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - 4.0.0 - net.thauvin.erik.urlencoder - urlencoder-lib-jvm - 1.4.0 - UrlEncoder for Kotlin Multiplatform - A simple defensive library to encode/decode URL components - https://github.com/ethauvin/urlencoder - - - The Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - gbevin - Geert Bevin - gbevin@uwyn.com - https://github.com/gbevin - - - ethauvin - Erik C. Thauvin - erik@thauvin.net - https://erik.thauvin.net/ - - - aSemy - Adam - https://github.com/aSemy - - - - scm:git://github.com/ethauvin/urlencoder.git - scm:git@github.com:ethauvin/urlencoder.git - https://github.com/ethauvin/urlencoder - - - GitHub - https://github.com/ethauvin/urlencoder/issues - - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - 1.9.10 - compile - - - org.jetbrains.kotlin - kotlin-stdlib-common - 1.9.10 - compile - - -