You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,4 +78,29 @@ Feign is a declarative HTTP client library with a modular design:
78
78
### Java Version Support
79
79
- Source/target: Java 8 (for `src/main`)
80
80
- Tests: Java 21 (for `src/test`)
81
-
- Maintains backwards compatibility with Java 8 in main codebase
81
+
- Maintains backwards compatibility with Java 8 in main codebase
82
+
83
+
### Updating Java Version for a Module
84
+
When a module's dependencies require a newer Java version (e.g., due to dependency upgrades), you need to override the Java version in that module's `pom.xml`:
85
+
86
+
1. Add a `<properties>` section to the module's `pom.xml` (or update existing one)
87
+
2. Set `<main.java.version>` to the required version (11, 17, 21, etc.)
88
+
89
+
Example:
90
+
```xml
91
+
<properties>
92
+
<main.java.version>17</main.java.version>
93
+
</properties>
94
+
```
95
+
96
+
**Common scenarios requiring Java version updates:**
97
+
- Dropwizard Metrics 5.x requires Java 17
98
+
- Handlebars 4.5.0+ requires Java 17
99
+
- Jakarta EE modules typically require Java 11+
100
+
101
+
**Examples of modules with custom Java versions:**
0 commit comments