|
40 | 40 | <properties> |
41 | 41 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
42 | 42 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
43 | | - <maven.compiler.source>11</maven.compiler.source> |
44 | | - <maven.compiler.target>11</maven.compiler.target> |
| 43 | + <maven.compiler.release>21</maven.compiler.release> |
45 | 44 |
|
46 | | - <!-- Dependencies --> |
47 | | - <beanmapper.version>3.1.0</beanmapper.version> |
48 | | - <database.truncator.version>1.0.0</database.truncator.version> |
49 | | - <spring-boot.version>2.4.1</spring-boot.version> |
50 | | - </properties> |
| 45 | + <spring-boot.version>3.5.8</spring-boot.version> |
| 46 | + <beanmapper.version>6.0.0</beanmapper.version> |
| 47 | + <database.truncator.version>2.0.0</database.truncator.version> |
51 | 48 |
|
52 | | - <distributionManagement> |
53 | | - <snapshotRepository> |
54 | | - <id>ossrh</id> |
55 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
56 | | - </snapshotRepository> |
57 | | - <repository> |
58 | | - <id>ossrh</id> |
59 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
60 | | - </repository> |
61 | | - </distributionManagement> |
| 49 | + <dependency-check-maven.version>12.1.9</dependency-check-maven.version> |
| 50 | + <jacoco-maven-plugin.version>0.8.14</jacoco-maven-plugin.version> |
| 51 | + <central-publishing-maven-plugin.version>0.9.0</central-publishing-maven-plugin.version> |
| 52 | + <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
| 53 | + <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
| 54 | + <maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version> |
| 55 | + </properties> |
62 | 56 |
|
63 | 57 | <dependencyManagement> |
64 | 58 | <dependencies> |
|
85 | 79 | <optional>true</optional> |
86 | 80 | </dependency> |
87 | 81 |
|
88 | | - <dependency> |
89 | | - <groupId>org.junit.vintage</groupId> |
90 | | - <artifactId>junit-vintage-engine</artifactId> |
91 | | - <scope>test</scope> |
92 | | - <exclusions> |
93 | | - <exclusion> |
94 | | - <groupId>org.hamcrest</groupId> |
95 | | - <artifactId>hamcrest-core</artifactId> |
96 | | - </exclusion> |
97 | | - </exclusions> |
98 | | - </dependency> |
99 | 82 | <dependency> |
100 | 83 | <groupId>org.springframework.boot</groupId> |
101 | 84 | <artifactId>spring-boot-starter-test</artifactId> |
|
115 | 98 | </dependencies> |
116 | 99 |
|
117 | 100 | <build> |
118 | | - <pluginManagement> |
119 | | - <plugins> |
120 | | - <plugin> |
121 | | - <groupId>org.apache.maven.plugins</groupId> |
122 | | - <artifactId>maven-compiler-plugin</artifactId> |
123 | | - <version>3.8.1</version> |
124 | | - </plugin> |
125 | | - <plugin> |
126 | | - <groupId>org.apache.maven.plugins</groupId> |
127 | | - <artifactId>maven-surefire-plugin</artifactId> |
128 | | - <version>2.22.2</version> |
129 | | - </plugin> |
130 | | - <plugin> |
131 | | - <groupId>org.apache.maven.plugins</groupId> |
132 | | - <artifactId>maven-release-plugin</artifactId> |
133 | | - <version>2.5.3</version> |
134 | | - <configuration> |
135 | | - <mavenExecutorId>forked-path</mavenExecutorId> |
136 | | - <useReleaseProfile>false</useReleaseProfile> |
137 | | - <releaseProfiles>release</releaseProfiles> |
138 | | - <goals>deploy</goals> |
139 | | - </configuration> |
140 | | - </plugin> |
141 | | - </plugins> |
142 | | - </pluginManagement> |
143 | 101 | <plugins> |
| 102 | + <plugin> |
| 103 | + <groupId>org.owasp</groupId> |
| 104 | + <artifactId>dependency-check-maven</artifactId> |
| 105 | + <version>${dependency-check-maven.version}</version> |
| 106 | + <configuration> |
| 107 | + <failBuildOnCVSS>0</failBuildOnCVSS> |
| 108 | + <skipProvidedScope>true</skipProvidedScope> |
| 109 | + <skipTestScope>true</skipTestScope> |
| 110 | + <skipRuntimeScope>true</skipRuntimeScope> |
| 111 | + <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> |
| 112 | + <suppressionFile>owasp-suppressions.xml</suppressionFile> |
| 113 | + </configuration> |
| 114 | + </plugin> |
144 | 115 | <plugin> |
145 | 116 | <groupId>org.jacoco</groupId> |
146 | 117 | <artifactId>jacoco-maven-plugin</artifactId> |
147 | | - <version>0.8.6</version> |
| 118 | + <version>${jacoco-maven-plugin.version}</version> |
148 | 119 | <executions> |
149 | 120 | <execution> |
150 | 121 | <goals> |
|
160 | 131 | </execution> |
161 | 132 | </executions> |
162 | 133 | </plugin> |
163 | | - <plugin> |
164 | | - <groupId>org.owasp</groupId> |
165 | | - <artifactId>dependency-check-maven</artifactId> |
166 | | - <version>6.0.5</version> |
167 | | - <configuration> |
168 | | - <failBuildOnAnyVulnerability>true</failBuildOnAnyVulnerability> |
169 | | - <skipProvidedScope>true</skipProvidedScope> |
170 | | - <skipTestScope>true</skipTestScope> |
171 | | - <skipRuntimeScope>true</skipRuntimeScope> |
172 | | - <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> |
173 | | - <suppressionFile>owasp-suppressions.xml</suppressionFile> |
174 | | - </configuration> |
175 | | - </plugin> |
176 | 134 | </plugins> |
177 | 135 | </build> |
178 | 136 |
|
|
184 | 142 | <plugin> |
185 | 143 | <groupId>org.apache.maven.plugins</groupId> |
186 | 144 | <artifactId>maven-javadoc-plugin</artifactId> |
187 | | - <version>3.2.0</version> |
188 | | - <configuration> |
189 | | - <source>${maven.compiler.source}</source> |
190 | | - </configuration> |
| 145 | + <version>${maven-javadoc-plugin.version}</version> |
191 | 146 | <executions> |
192 | 147 | <execution> |
193 | 148 | <id>attach-javadocs</id> |
|
200 | 155 | <plugin> |
201 | 156 | <groupId>org.apache.maven.plugins</groupId> |
202 | 157 | <artifactId>maven-source-plugin</artifactId> |
203 | | - <version>3.2.1</version> |
| 158 | + <version>${maven-source-plugin.version}</version> |
204 | 159 | <executions> |
205 | 160 | <execution> |
206 | 161 | <id>attach-sources</id> |
|
213 | 168 | <plugin> |
214 | 169 | <groupId>org.apache.maven.plugins</groupId> |
215 | 170 | <artifactId>maven-gpg-plugin</artifactId> |
216 | | - <version>1.6</version> |
| 171 | + <version>${maven-gpg-plugin.version}</version> |
217 | 172 | <executions> |
218 | 173 | <execution> |
219 | 174 | <id>sign-artifacts</id> |
|
224 | 179 | </execution> |
225 | 180 | </executions> |
226 | 181 | </plugin> |
| 182 | + <plugin> |
| 183 | + <groupId>org.sonatype.central</groupId> |
| 184 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 185 | + <version>${central-publishing-maven-plugin.version}</version> |
| 186 | + <extensions>true</extensions> |
| 187 | + <configuration> |
| 188 | + <publishingServerId>central</publishingServerId> |
| 189 | + </configuration> |
| 190 | + </plugin> |
227 | 191 | </plugins> |
228 | 192 | </build> |
229 | 193 | </profile> |
|
0 commit comments