|
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
15 | 15 | <java.version>8</java.version>
|
16 | 16 | <maven.compiler.release>${java.version}</maven.compiler.release>
|
17 |
| - <pmd.version>6.55.0</pmd.version> |
18 |
| - <pmd.ui.version>6.49.0</pmd.ui.version> |
| 17 | + <pmd.version>7.0.0-rc3</pmd.version> |
| 18 | + <pmd.ui.version>7.0.0-rc1</pmd.ui.version> |
19 | 19 | </properties>
|
20 | 20 |
|
21 | 21 | <dependencyManagement>
|
|
35 | 35 | <artifactId>pmd-ui</artifactId>
|
36 | 36 | <version>${pmd.ui.version}</version>
|
37 | 37 | </dependency>
|
| 38 | + <dependency> |
| 39 | + <groupId>net.sourceforge.pmd</groupId> |
| 40 | + <artifactId>pmd-cli</artifactId> |
| 41 | + <version>${pmd.version}</version> |
| 42 | + <scope>runtime</scope> |
| 43 | + <exclusions> |
| 44 | + <!-- exclude pmd-languages-deps because we only want to include pmd-java in our custom distribution --> |
| 45 | + <exclusion> |
| 46 | + <groupId>net.sourceforge.pmd</groupId> |
| 47 | + <artifactId>pmd-languages-deps</artifactId> |
| 48 | + </exclusion> |
| 49 | + </exclusions> |
| 50 | + </dependency> |
| 51 | + <!-- include bash/zsh completions --> |
| 52 | + <dependency> |
| 53 | + <groupId>net.sourceforge.pmd</groupId> |
| 54 | + <artifactId>pmd-cli</artifactId> |
| 55 | + <version>${pmd.version}</version> |
| 56 | + <type>sh</type> |
| 57 | + <classifier>completion</classifier> |
| 58 | + <scope>runtime</scope> |
| 59 | + <exclusions> |
| 60 | + <!-- exclude pmd-languages-deps because we only want to include pmd-java in our custom distribution --> |
| 61 | + <exclusion> |
| 62 | + <groupId>net.sourceforge.pmd</groupId> |
| 63 | + <artifactId>pmd-languages-deps</artifactId> |
| 64 | + </exclusion> |
| 65 | + </exclusions> |
| 66 | + </dependency> |
38 | 67 | <dependency>
|
39 | 68 | <groupId>net.sourceforge.pmd</groupId>
|
40 | 69 | <artifactId>pmd-test</artifactId>
|
41 | 70 | <version>${pmd.version}</version>
|
42 | 71 | <scope>test</scope>
|
43 | 72 | </dependency>
|
44 | 73 | <dependency>
|
45 |
| - <groupId>junit</groupId> |
46 |
| - <artifactId>junit</artifactId> |
47 |
| - <version>4.13.1</version> |
| 74 | + <groupId>org.junit.jupiter</groupId> |
| 75 | + <artifactId>junit-jupiter</artifactId> |
| 76 | + <version>5.8.2</version> |
48 | 77 | <scope>test</scope>
|
49 | 78 | </dependency>
|
50 | 79 | </dependencies>
|
|
68 | 97 | <artifactId>maven-dependency-plugin</artifactId>
|
69 | 98 | <version>3.6.0</version>
|
70 | 99 | </plugin>
|
| 100 | + <plugin> |
| 101 | + <groupId>org.cyclonedx</groupId> |
| 102 | + <artifactId>cyclonedx-maven-plugin</artifactId> |
| 103 | + <version>2.7.6</version> |
| 104 | + </plugin> |
71 | 105 | </plugins>
|
72 | 106 | </pluginManagement>
|
| 107 | + <plugins> |
| 108 | + <plugin> |
| 109 | + <groupId>org.cyclonedx</groupId> |
| 110 | + <artifactId>cyclonedx-maven-plugin</artifactId> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <phase>package</phase> |
| 114 | + <goals> |
| 115 | + <goal>makeAggregateBom</goal> |
| 116 | + </goals> |
| 117 | + </execution> |
| 118 | + </executions> |
| 119 | + <!-- https://github.com/CycloneDX/cyclonedx-maven-plugin/issues/326 --> |
| 120 | + <dependencies> |
| 121 | + <dependency> |
| 122 | + <groupId>org.ow2.asm</groupId> |
| 123 | + <artifactId>asm</artifactId> |
| 124 | + <version>9.5</version> |
| 125 | + </dependency> |
| 126 | + </dependencies> |
| 127 | + </plugin> |
| 128 | + </plugins> |
73 | 129 | </build>
|
74 | 130 |
|
75 | 131 | <url>https://github.com/pmd/pmd-examples</url>
|
|
0 commit comments