|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 5 | <modelVersion>4.0.0</modelVersion> |
4 | 6 | <parent> |
5 | 7 | <groupId>io.avaje</groupId> |
|
113 | 115 | <groupId>org.apache.maven.plugins</groupId> |
114 | 116 | <artifactId>maven-compiler-plugin</artifactId> |
115 | 117 | <version>3.14.1</version> |
| 118 | + <configuration> |
| 119 | + <annotationProcessorPaths> |
| 120 | + <path> |
| 121 | + <groupId>io.avaje</groupId> |
| 122 | + <artifactId>avaje-inject-generator</artifactId> |
| 123 | + <version>12.0</version> |
| 124 | + </path> |
| 125 | + </annotationProcessorPaths> |
| 126 | + </configuration> |
116 | 127 | <executions> |
117 | 128 | <execution> |
118 | | - <id>default-testCompile</id> |
119 | | - <configuration> |
120 | | - <annotationProcessorPaths> |
121 | | - <path> |
122 | | - <groupId>io.avaje</groupId> |
123 | | - <artifactId>avaje-inject-generator</artifactId> |
124 | | - <version>12.0</version> |
125 | | - </path> |
126 | | - </annotationProcessorPaths> |
127 | | - </configuration> |
128 | | - </execution> |
129 | | - <!-- Compile for base version Java 11 --> |
130 | | - <execution> |
131 | | - <id>base</id> |
132 | | - <goals> |
133 | | - <goal>compile</goal> |
134 | | - </goals> |
135 | | - <configuration> |
136 | | - <release>11</release> |
137 | | - <compileSourceRoots> |
138 | | - <compileSourceRoot>${project.basedir}/src/main/java</compileSourceRoot> |
139 | | - </compileSourceRoots> |
140 | | - </configuration> |
141 | | - </execution> |
142 | | - <!-- Compile for Java 21 --> |
143 | | - <execution> |
144 | | - <id>java21</id> |
| 129 | + <id>compile-java-21</id> |
| 130 | + <phase>compile</phase> |
145 | 131 | <goals> |
146 | 132 | <goal>compile</goal> |
147 | 133 | </goals> |
148 | 134 | <configuration> |
149 | 135 | <release>21</release> |
150 | 136 | <compileSourceRoots> |
151 | | - <compileSourceRoot>${project.basedir}/src/main/java21</compileSourceRoot> |
| 137 | + <compileSourceRoot> |
| 138 | + ${project.basedir}/src/main/java21</compileSourceRoot> |
152 | 139 | </compileSourceRoots> |
153 | | - <outputDirectory>${project.build.outputDirectory}/META-INF/versions/21</outputDirectory> |
| 140 | + <multiReleaseOutput>true</multiReleaseOutput> |
154 | 141 | </configuration> |
155 | 142 | </execution> |
156 | 143 | </executions> |
157 | 144 | </plugin> |
| 145 | + <plugin> |
| 146 | + <groupId>org.apache.maven.plugins</groupId> |
| 147 | + <artifactId>maven-jar-plugin</artifactId> |
| 148 | + <configuration> |
| 149 | + <archive> |
| 150 | + <manifestEntries> |
| 151 | + <Multi-Release>true</Multi-Release> |
| 152 | + </manifestEntries> |
| 153 | + </archive> |
| 154 | + </configuration> |
| 155 | + </plugin> |
158 | 156 |
|
159 | 157 | <!-- generated by avaje inject --> |
160 | 158 | <plugin> |
|
0 commit comments