Skip to content

Commit 76ac25d

Browse files
committed
fix: compile to Java 8
1 parent 7c37c5e commit 76ac25d

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ Start using the OWASP Java Encoders
1313
-----------------------------------
1414
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).
1515

16-
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).
16+
JSP tags and EL functions are available in the encoder-jsp, also available:
17+
- [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
18+
- [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
1719

18-
The jars are also available in Maven:
20+
The jars are also available in Central:
1921

2022
```xml
2123
<dependency>
@@ -24,19 +26,17 @@ The jars are also available in Maven:
2426
<version>1.3.0</version>
2527
</dependency>
2628

29+
<!-- using Servlet Spec 5 in the jakarta.servlet package use: -->
2730
<dependency>
2831
<groupId>org.owasp.encoder</groupId>
29-
<artifactId>encoder-jsp</artifactId>
32+
<artifactId>encoder-jakarta-jsp</artifactId>
3033
<version>1.3.0</version>
3134
</dependency>
32-
```
3335

34-
If using Java 17 and need to use the Jakarta Servelt Spec you can use:
35-
36-
```xml
36+
<!-- using the Legacy Servlet Spec in the javax.servlet package use: -->
3737
<dependency>
3838
<groupId>org.owasp.encoder</groupId>
39-
<artifactId>encoder-jakarta-jsp</artifactId>
39+
<artifactId>encoder-jsp</artifactId>
4040
<version>1.3.0</version>
4141
</dependency>
4242
```
@@ -58,6 +58,17 @@ Please look at the javadoc for Encode to see the variety of contexts for which y
5858

5959
Happy Encoding!
6060

61+
Building
62+
--------
63+
64+
Due to test cases for the `encoder-jakarta-jsp` project Java 17 is required to package and test
65+
the project. Simply run:
66+
67+
```shell
68+
mvn package
69+
```
70+
71+
6172
News
6273
----
6374
### 2024-08-01 - 1.2.3 Release

jakarta/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<scope>test</scope>
9191
</dependency>
9292
</dependencies>
93-
<build>
93+
<!-- <build>
9494
<plugins>
9595
<plugin>
9696
<groupId>org.apache.maven.plugins</groupId>
@@ -101,5 +101,5 @@
101101
</configuration>
102102
</plugin>
103103
</plugins>
104-
</build>
104+
</build>-->
105105
</project>

0 commit comments

Comments
 (0)