Skip to content

Commit

Permalink
Version 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Mar 28, 2024
1 parent c801a97 commit dd3d500
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 142 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
}
```

Expand All @@ -72,11 +71,11 @@ to the artifact URL.
<dependency>
<groupId>net.thauvin.erik.urlencoder</groupId>
<artifactId>urlencoder-lib-jvm</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
</dependency>
```

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
Expand All @@ -90,15 +89,15 @@ You have two options:

The usage is as follows:

```
```console
Encode and decode URL components defensively.
-e encode (default)
-d decode
```

### 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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "net.thauvin.erik.urlencoder"
version = "1.5.0-SNAPSHOT"
version = "1.5.0"

dependencies {
kover(projects.urlencoderLib)
Expand Down
69 changes: 0 additions & 69 deletions urlencoder-app/pom.xml

This file was deleted.

63 changes: 0 additions & 63 deletions urlencoder-lib/pom.xml

This file was deleted.

0 comments on commit dd3d500

Please sign in to comment.