|
6 | 6 |
|
7 | 7 | <groupId>de.sonallux.spotify</groupId> |
8 | 8 | <artifactId>spotify-web-api-java-parent</artifactId> |
9 | | - <version>2.1.0</version> |
| 9 | + <version>2.2.0-beta.0</version> |
10 | 10 | <packaging>pom</packaging> |
11 | 11 |
|
12 | 12 | <name>spotify-web-api-java-parent</name> |
|
58 | 58 | <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version> |
59 | 59 | <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version> |
60 | 60 | <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> |
| 61 | + <moditect-maven-plugin.version>1.0.0.RC1</moditect-maven-plugin.version> |
61 | 62 |
|
62 | 63 | <!-- Dependencies --> |
63 | 64 | <lombok.version>1.18.20</lombok.version> |
64 | 65 |
|
65 | 66 | <!-- Test Dependencies --> |
66 | 67 | <junit.version>5.7.2</junit.version> |
67 | 68 | <mockito-junit-jupiter.version>3.11.1</mockito-junit-jupiter.version> |
| 69 | + |
| 70 | + <moditect.sourceGroup>${project.groupId}</moditect.sourceGroup> |
| 71 | + <moditect.sourceArtifact>${project.artifactId}</moditect.sourceArtifact> |
| 72 | + <moditect.sourceVersion>${project.version}</moditect.sourceVersion> |
| 73 | + <moditect.module.name>de.sonallux.spotify</moditect.module.name> |
68 | 74 | </properties> |
69 | 75 |
|
70 | 76 | <distributionManagement> |
|
137 | 143 | <artifactId>maven-surefire-plugin</artifactId> |
138 | 144 | <version>${maven-surefire-plugin.version}</version> |
139 | 145 | </plugin> |
| 146 | + <plugin> |
| 147 | + <groupId>org.moditect</groupId> |
| 148 | + <artifactId>moditect-maven-plugin</artifactId> |
| 149 | + <version>${moditect-maven-plugin.version}</version> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <id>add-module-infos</id> |
| 153 | + <phase>package</phase> |
| 154 | + <goals> |
| 155 | + <goal>add-module-info</goal> |
| 156 | + </goals> |
| 157 | + <configuration> |
| 158 | + <overwriteExistingFiles>true</overwriteExistingFiles> |
| 159 | + <module> |
| 160 | + <moduleInfoFile>src/moditect/module-info.java</moduleInfoFile> |
| 161 | + </module> |
| 162 | + </configuration> |
| 163 | + </execution> |
| 164 | + </executions> |
| 165 | + </plugin> |
140 | 166 | </plugins> |
141 | 167 | </build> |
142 | 168 |
|
|
176 | 202 | <profile> |
177 | 203 | <id>cli</id> |
178 | 204 | </profile> |
| 205 | + <profile> |
| 206 | + <!-- |
| 207 | + This profile can be used to generate the module-info.java files by running `.\mvnw -Pmoditect generate-sources` |
| 208 | + The final module-info.java can be found in `target/generated-sources/modules/${moditect.module.name}/` |
| 209 | + Note: for generator-open-api this will fail because com.github.java-json-tools:jackson-coreutils-equivalence |
| 210 | + and com.github.java-json-tools:jackson-coreutils do export the same package `com.github.fge.jackson`. |
| 211 | + This is a split package which is not allowed by the module system. But the module-info.java can still be |
| 212 | + generated by manually executing the jdeps command without the jackson-coreutils-equivalence dependency. |
| 213 | + --> |
| 214 | + <id>moditect</id> |
| 215 | + <build> |
| 216 | + <plugins> |
| 217 | + <plugin> |
| 218 | + <groupId>org.moditect</groupId> |
| 219 | + <artifactId>moditect-maven-plugin</artifactId> |
| 220 | + <version>${moditect-maven-plugin.version}</version> |
| 221 | + <executions> |
| 222 | + <execution> |
| 223 | + <id>generate-module-info</id> |
| 224 | + <phase>generate-sources</phase> |
| 225 | + <goals> |
| 226 | + <goal>generate-module-info</goal> |
| 227 | + </goals> |
| 228 | + <configuration> |
| 229 | + <modules> |
| 230 | + <module> |
| 231 | + <artifact> |
| 232 | + <groupId>${moditect.sourceGroup}</groupId> |
| 233 | + <artifactId>${moditect.sourceArtifact}</artifactId> |
| 234 | + <version>${moditect.sourceVersion}</version> |
| 235 | + </artifact> |
| 236 | + <moduleInfo> |
| 237 | + <name>${moditect.module.name}</name> |
| 238 | + </moduleInfo> |
| 239 | + </module> |
| 240 | + </modules> |
| 241 | + </configuration> |
| 242 | + </execution> |
| 243 | + </executions> |
| 244 | + </plugin> |
| 245 | + </plugins> |
| 246 | + </build> |
| 247 | + </profile> |
179 | 248 | </profiles> |
180 | 249 | </project> |
0 commit comments