Skip to content

Commit

Permalink
fix: compile to Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Jul 30, 2024
1 parent 7c37c5e commit 76ac25d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ Start using the OWASP Java Encoders
-----------------------------------
You can download a JAR from [Maven Central](https://search.maven.org/#search|ga|1|g%3A%22org.owasp.encoder%22%20a%3A%22encoder%22).

JSP tags and EL functions are available in the encoder-jsp, also available in [Central](http://search.maven.org/remotecontent?filepath=org/owasp/encoder/encoder-jsp/1.2.3/encoder-jsp-1.2.3.jar).
JSP tags and EL functions are available in the encoder-jsp, also available:
- [encoder-jakarta-jsp](http://search.maven.org/remotecontent?filepath=org/owasp/encoder/encoder-jakarta-jsp/1.2.3/encoder-jakarta-jsp-1.2.3.jar) - Servlet Spec 5.0
- [encoder-jsp](http://search.maven.org/remotecontent?filepath=org/owasp/encoder/encoder-jsp/1.2.3/encoder-jsp-1.2.3.jar) - Servlet Spec 3.0

The jars are also available in Maven:
The jars are also available in Central:

```xml
<dependency>
Expand All @@ -24,19 +26,17 @@ The jars are also available in Maven:
<version>1.3.0</version>
</dependency>

<!-- using Servlet Spec 5 in the jakarta.servlet package use: -->
<dependency>
<groupId>org.owasp.encoder</groupId>
<artifactId>encoder-jsp</artifactId>
<artifactId>encoder-jakarta-jsp</artifactId>
<version>1.3.0</version>
</dependency>
```

If using Java 17 and need to use the Jakarta Servelt Spec you can use:

```xml
<!-- using the Legacy Servlet Spec in the javax.servlet package use: -->
<dependency>
<groupId>org.owasp.encoder</groupId>
<artifactId>encoder-jakarta-jsp</artifactId>
<artifactId>encoder-jsp</artifactId>
<version>1.3.0</version>
</dependency>
```
Expand All @@ -58,6 +58,17 @@ Please look at the javadoc for Encode to see the variety of contexts for which y

Happy Encoding!

Building
--------

Due to test cases for the `encoder-jakarta-jsp` project Java 17 is required to package and test
the project. Simply run:

```shell
mvn package
```


News
----
### 2024-08-01 - 1.2.3 Release
Expand Down
4 changes: 2 additions & 2 deletions jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -101,5 +101,5 @@
</configuration>
</plugin>
</plugins>
</build>
</build>-->
</project>

0 comments on commit 76ac25d

Please sign in to comment.