Skip to content

Commit 75a52ce

Browse files
committed
Update to java 11
1 parent 88aa699 commit 75a52ce

4 files changed

Lines changed: 22 additions & 25 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Built-in template caching using Caffeine cache:
6767
- Cross-platform testing (Windows/Linux) in CI
6868

6969
### Dependencies
70-
- Java 8+ required (builds with Java 8-17)
70+
- Java 11+ required
7171
- Core dependencies: Apache Commons (JEXL, IO, Lang, Text), Caffeine cache
7272
- Optional: GraalVM for JavaScript expression handling
7373
- Build: Maven 3.0+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ config.setExpressionHandler(new GraalJsExpressionHandler());
315315
- [vertx-web](https://vertx.io/docs/vertx-web/java/#_jade_template_engine) jade4j for [Vert.X](http://vertx.io/)
316316

317317
<a name="breaking-changes-2"></a>
318+
## Breaking Changes in 3.0.0
319+
- Compiler Level has been raised to Java 11+
320+
318321
## Breaking Changes in 2.0.0
319322
- Classes are renamed to pug4j.
320323
- Default file extension is now .pug

docs/tasks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ This document contains a comprehensive list of improvement tasks for the pug4j p
3636

3737
### Null Safety & Validation
3838
- [ ] Add null checks before operations that could throw NPE
39-
- [ ] Replace exception-based control flow in PugConfiguration.java:155-161
39+
- [ ] Replace exception-based control flow in PugConfiguration.java:154-159
4040
- [ ] Add parameter validation at method entry points
4141
- [ ] Remove unnecessary null checks (e.g., Lexer.java:1480-1482)
4242
- [ ] Add @Nullable and @NonNull annotations throughout codebase
4343

4444
### Code Cleanup
45-
- [ ] Remove or implement TODO comments (6 found in codebase)
45+
- [ ] Remove or implement TODO comments (5 found in codebase: Compiler.java:83, PugTemplate.java:45,63,69, Lexer.java:743)
4646
- [ ] Add @Deprecated annotations to deprecated methods (PugTemplate.java:45,63,69)
4747
- [ ] Remove commented-out code or document why it's preserved
4848
- [ ] Address all FIXME and XXX comments
@@ -193,7 +193,7 @@ This document contains a comprehensive list of improvement tasks for the pug4j p
193193
- **Critical issues identified:** 15
194194
- **High priority issues:** 27 (1 completed)
195195
- **Medium priority issues:** 22
196-
- **TODO/FIXME comments:** 6
196+
- **TODO/FIXME comments:** 5
197197
- **Deprecated classes/methods:** 4
198198

199199
### Improvement Guidelines
@@ -212,5 +212,5 @@ When working on these tasks:
212212
- Update documentation for user-facing changes
213213

214214
---
215-
*Last updated: 2025-10-09*
215+
*Last updated: 2025-10-10*
216216
*Analysis performed by Claude Code*

pom.xml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@
7474
<properties>
7575
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7676
<project.scm.id>git@github.com</project.scm.id>
77-
<maven.compiler.source>1.8</maven.compiler.source>
78-
<maven.compiler.target>1.8</maven.compiler.target>
79-
<graalvm.version>21.3.15</graalvm.version>
80-
<java.version>8</java.version>
77+
<maven.compiler.source>11</maven.compiler.source>
78+
<maven.compiler.target>11</maven.compiler.target>
79+
<graalvm.version>23.1.8</graalvm.version>
80+
<java.version>11</java.version>
8181
</properties>
8282

8383
<profiles>
@@ -87,7 +87,7 @@
8787
<jdk>[11,)</jdk>
8888
</activation>
8989
<properties>
90-
<maven.compiler.release>8</maven.compiler.release>
90+
<maven.compiler.release>11</maven.compiler.release>
9191
</properties>
9292
</profile>
9393
<profile>
@@ -300,7 +300,7 @@
300300
<dependency>
301301
<groupId>com.github.ben-manes.caffeine</groupId>
302302
<artifactId>caffeine</artifactId>
303-
<version>2.9.3</version>
303+
<version>3.2.2</version>
304304
</dependency>
305305
<dependency>
306306
<groupId>com.google.code.gson</groupId>
@@ -310,7 +310,7 @@
310310
<dependency>
311311
<groupId>com.vladsch.flexmark</groupId>
312312
<artifactId>flexmark</artifactId>
313-
<version>0.62.2</version>
313+
<version>0.64.8</version>
314314
</dependency>
315315
<dependency>
316316
<groupId>org.graalvm.sdk</groupId>
@@ -319,26 +319,20 @@
319319
<scope>compile</scope>
320320
</dependency>
321321
<dependency>
322-
<groupId>org.graalvm.js</groupId>
323-
<artifactId>js</artifactId>
324-
<version>${graalvm.version}</version>
325-
<scope>runtime</scope>
326-
</dependency>
327-
<dependency>
328-
<groupId>org.graalvm.js</groupId>
329-
<artifactId>js-scriptengine</artifactId>
322+
<groupId>org.graalvm.polyglot</groupId>
323+
<artifactId>polyglot</artifactId>
330324
<version>${graalvm.version}</version>
331-
<scope>runtime</scope>
332325
</dependency>
333326
<dependency>
334-
<groupId>org.graalvm.tools</groupId>
335-
<artifactId>profiler</artifactId>
327+
<groupId>org.graalvm.polyglot</groupId>
328+
<artifactId>js-community</artifactId>
336329
<version>${graalvm.version}</version>
330+
<type>pom</type>
337331
<scope>runtime</scope>
338332
</dependency>
339333
<dependency>
340-
<groupId>org.graalvm.tools</groupId>
341-
<artifactId>chromeinspector</artifactId>
334+
<groupId>org.graalvm.js</groupId>
335+
<artifactId>js-scriptengine</artifactId>
342336
<version>${graalvm.version}</version>
343337
<scope>runtime</scope>
344338
</dependency>

0 commit comments

Comments
 (0)