|
90 | 90 | <maven.site.path>resolver-archives/resolver-LATEST-1.x</maven.site.path>
|
91 | 91 | <checkstyle.violation.ignore>None</checkstyle.violation.ignore>
|
92 | 92 | <sisuVersion>0.9.0.M4</sisuVersion>
|
93 |
| - <guiceVersion>6.0.0</guiceVersion> |
| 93 | + <!-- the same version as in Maven 3.9.x --> |
| 94 | + <guiceVersion>5.1.0</guiceVersion> |
94 | 95 | <slf4jVersion>1.7.36</slf4jVersion>
|
95 | 96 | <!-- used by supplier and demo only -->
|
96 | 97 | <mavenVersion>3.9.10</mavenVersion>
|
|
216 | 217 | <groupId>org.eclipse.sisu</groupId>
|
217 | 218 | <artifactId>org.eclipse.sisu.plexus</artifactId>
|
218 | 219 | <version>${sisuVersion}</version>
|
219 |
| - <exclusions> |
220 |
| - <exclusion> |
221 |
| - <groupId>javax.enterprise</groupId> |
222 |
| - <artifactId>cdi-api</artifactId> |
223 |
| - </exclusion> |
224 |
| - </exclusions> |
225 | 220 | </dependency>
|
226 | 221 | <dependency>
|
227 | 222 | <groupId>com.google.inject</groupId>
|
228 | 223 | <artifactId>guice</artifactId>
|
229 | 224 | <version>${guiceVersion}</version>
|
| 225 | + <classifier>classes</classifier> |
230 | 226 | </dependency>
|
231 | 227 | <dependency>
|
232 | 228 | <groupId>com.google.guava</groupId>
|
|
508 | 504 | </plugins>
|
509 | 505 | </pluginManagement>
|
510 | 506 | <plugins>
|
| 507 | + <plugin> |
| 508 | + <groupId>org.apache.maven.plugins</groupId> |
| 509 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 510 | + <executions> |
| 511 | + <execution> |
| 512 | + <id>ensure-no-guice-with-asm</id> |
| 513 | + <goals> |
| 514 | + <goal>enforce</goal> |
| 515 | + </goals> |
| 516 | + <configuration> |
| 517 | + <rules> |
| 518 | + <bannedDependencies> |
| 519 | + <excludes> |
| 520 | + <!-- we use com.google.inject:classes:guice --> |
| 521 | + <exclude>com.google.inject:guice:*</exclude> |
| 522 | + </excludes> |
| 523 | + <includes> |
| 524 | + <include>com.google.inject:guice:*:jar:*:classes</include> |
| 525 | + </includes> |
| 526 | + <message>use guice without asm shaded in.</message> |
| 527 | + </bannedDependencies> |
| 528 | + </rules> |
| 529 | + </configuration> |
| 530 | + </execution> |
| 531 | + </executions> |
| 532 | + </plugin> |
511 | 533 | <plugin>
|
512 | 534 | <groupId>biz.aQute.bnd</groupId>
|
513 | 535 | <artifactId>bnd-maven-plugin</artifactId>
|
|
0 commit comments