Skip to content

Commit b32e245

Browse files
committed
chore: upgrade dependencies/plugins
1 parent 716ae46 commit b32e245

File tree

2 files changed

+117
-27
lines changed

2 files changed

+117
-27
lines changed

pom.xml

Lines changed: 87 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<artifactId>compileflow</artifactId>
99
<version>1.2.0-SNAPSHOT</version>
1010
<name>compileflow</name>
11-
<description>Compileflow is a very lightweight, high-performance, integrable and extensible process engine.</description>
11+
<description>
12+
Compileflow is a very lightweight, high-performance, integrable and extensible process engine.
13+
</description>
1214
<url>https://github.com/alibaba/compileflow</url>
1315
<inceptionYear>2020</inceptionYear>
1416

@@ -99,12 +101,12 @@
99101

100102
<properties>
101103
<maven.compiler.source>1.8</maven.compiler.source>
102-
<maven.compiler.target>1.8</maven.compiler.target>
104+
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
103105
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
104106

105107
<spring.version>3.2.11.RELEASE</spring.version>
106-
<slf4j.version>1.7.32</slf4j.version>
107-
<mockito.version>3.12.4</mockito.version>
108+
<slf4j.version>1.7.35</slf4j.version>
109+
<mockito.version>4.3.1</mockito.version>
108110
</properties>
109111

110112
<dependencies>
@@ -117,7 +119,7 @@
117119
<dependency>
118120
<groupId>org.apache.commons</groupId>
119121
<artifactId>commons-lang3</artifactId>
120-
<version>3.9</version>
122+
<version>3.12.0</version>
121123
</dependency>
122124
<dependency>
123125
<groupId>org.slf4j</groupId>
@@ -133,7 +135,7 @@
133135
<dependency>
134136
<groupId>com.github.spotbugs</groupId>
135137
<artifactId>spotbugs-annotations</artifactId>
136-
<version>4.4.0</version>
138+
<version>4.5.3</version>
137139
<optional>true</optional>
138140
</dependency>
139141

@@ -158,12 +160,12 @@
158160
<dependency>
159161
<groupId>com.alibaba</groupId>
160162
<artifactId>QLExpress</artifactId>
161-
<version>3.2.5</version>
163+
<version>3.2.7</version>
162164
</dependency>
163165
<dependency>
164166
<groupId>org.mvel</groupId>
165167
<artifactId>mvel2</artifactId>
166-
<version>2.4.12.Final</version>
168+
<version>2.4.14.Final</version>
167169
</dependency>
168170

169171
<!-- compiler libs -->
@@ -210,16 +212,6 @@
210212
<build>
211213
<plugins>
212214
<plugin>
213-
<groupId>org.apache.maven.plugins</groupId>
214-
<artifactId>maven-compiler-plugin</artifactId>
215-
<version>3.8.1</version>
216-
</plugin>
217-
<plugin>
218-
<artifactId>maven-deploy-plugin</artifactId>
219-
<version>2.8.2</version>
220-
</plugin>
221-
<plugin>
222-
<groupId>org.apache.maven.plugins</groupId>
223215
<artifactId>maven-assembly-plugin</artifactId>
224216
<configuration>
225217
<descriptorRefs>
@@ -238,7 +230,6 @@
238230
<plugin>
239231
<groupId>org.sonatype.plugins</groupId>
240232
<artifactId>nexus-staging-maven-plugin</artifactId>
241-
<version>1.6.8</version>
242233
<extensions>true</extensions>
243234
<configuration>
244235
<serverId>ossrh</serverId>
@@ -254,18 +245,19 @@
254245
-->
255246
<plugin>
256247
<artifactId>maven-enforcer-plugin</artifactId>
257-
<version>3.0.0-M3</version>
258248
<executions>
259249
<execution>
260-
<id>enforce-maven</id>
261250
<goals>
262251
<goal>enforce</goal>
263252
</goals>
264253
<configuration>
265254
<rules>
266255
<requireMavenVersion>
267-
<version>3.3.9</version>
256+
<version>3.2.5</version>
268257
</requireMavenVersion>
258+
<requireJavaVersion>
259+
<version>[1.8,)</version>
260+
</requireJavaVersion>
269261
</rules>
270262
</configuration>
271263
</execution>
@@ -274,9 +266,78 @@
274266
<plugin>
275267
<groupId>org.codehaus.mojo</groupId>
276268
<artifactId>versions-maven-plugin</artifactId>
277-
<version>2.3</version>
269+
<configuration>
270+
<rulesUri>file://${project.basedir}/src/versions-rules.xml</rulesUri>
271+
<generateBackupPoms>false</generateBackupPoms>
272+
</configuration>
278273
</plugin>
279274
</plugins>
275+
<pluginManagement>
276+
<plugins>
277+
<plugin>
278+
<artifactId>maven-clean-plugin</artifactId>
279+
<version>3.1.0</version>
280+
</plugin>
281+
<plugin>
282+
<artifactId>maven-resources-plugin</artifactId>
283+
<version>3.2.0</version>
284+
</plugin>
285+
<plugin>
286+
<artifactId>maven-jar-plugin</artifactId>
287+
<version>3.2.2</version>
288+
</plugin>
289+
<plugin>
290+
<artifactId>maven-source-plugin</artifactId>
291+
<version>3.2.1</version>
292+
</plugin>
293+
<plugin>
294+
<artifactId>maven-compiler-plugin</artifactId>
295+
<version>3.9.0</version>
296+
</plugin>
297+
<plugin>
298+
<artifactId>maven-javadoc-plugin</artifactId>
299+
<version>3.3.1</version>
300+
</plugin>
301+
<plugin>
302+
<artifactId>maven-surefire-plugin</artifactId>
303+
<version>2.22.2</version>
304+
</plugin>
305+
<plugin>
306+
<artifactId>maven-assembly-plugin</artifactId>
307+
<version>3.3.0</version>
308+
</plugin>
309+
<plugin>
310+
<artifactId>maven-site-plugin</artifactId>
311+
<version>3.10.0</version>
312+
</plugin>
313+
<plugin>
314+
<artifactId>maven-gpg-plugin</artifactId>
315+
<version>3.0.1</version>
316+
</plugin>
317+
<plugin>
318+
<artifactId>maven-install-plugin</artifactId>
319+
<version>2.5.2</version>
320+
</plugin>
321+
<plugin>
322+
<artifactId>maven-deploy-plugin</artifactId>
323+
<version>2.8.2</version>
324+
</plugin>
325+
<plugin>
326+
<groupId>org.sonatype.plugins</groupId>
327+
<artifactId>nexus-staging-maven-plugin</artifactId>
328+
<version>1.6.8</version>
329+
</plugin>
330+
<plugin>
331+
<artifactId>maven-enforcer-plugin</artifactId>
332+
<version>3.0.0</version>
333+
</plugin>
334+
<plugin>
335+
<groupId>org.codehaus.mojo</groupId>
336+
<artifactId>versions-maven-plugin</artifactId>
337+
<version>2.3</version>
338+
</plugin>
339+
</plugins>
340+
</pluginManagement>
280341
</build>
281342
<profiles>
282343
<profile>
@@ -291,7 +352,6 @@
291352
<plugins>
292353
<plugin>
293354
<artifactId>maven-source-plugin</artifactId>
294-
<version>3.2.1</version>
295355
<executions>
296356
<execution>
297357
<id>attach-sources</id>
@@ -303,7 +363,6 @@
303363
</plugin>
304364
<plugin>
305365
<artifactId>maven-javadoc-plugin</artifactId>
306-
<version>3.3.0</version>
307366
<executions>
308367
<execution>
309368
<id>attach-javadoc</id>
@@ -341,7 +400,6 @@
341400
<plugins>
342401
<plugin>
343402
<artifactId>maven-gpg-plugin</artifactId>
344-
<version>3.0.1</version>
345403
<executions>
346404
<execution>
347405
<id>sign-artifacts</id>
@@ -430,7 +488,9 @@
430488
</validationProperty>
431489
</validationProperties>
432490
<generateGitPropertiesFile>true</generateGitPropertiesFile>
433-
<generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/scm/${project.groupId}/${project.artifactId}/git.properties</generateGitPropertiesFilename>
491+
<generateGitPropertiesFilename>
492+
${project.build.outputDirectory}/META-INF/scm/${project.groupId}/${project.artifactId}/git.properties
493+
</generateGitPropertiesFilename>
434494
</configuration>
435495
</plugin>
436496
</plugins>

src/versions-rules.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ruleset comparisonMethod="maven"
3+
xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
6+
7+
<!-- config example: https://github.com/mojohaus/versions-maven-plugin/issues/157#issuecomment-306041074 -->
8+
<ignoreVersions>
9+
<ignoreVersion type="regex">(?i).*[-.]alpha([-.]?\d+)?</ignoreVersion>
10+
<!-- ignore like junit 4.13-beta-3, rxkotlin 2.4.0-beta.1, spotbugs-annotations 4.0.0-beta3 -->
11+
<ignoreVersion type="regex">(?i).*[-.]beta([-.]?\d+)?</ignoreVersion>
12+
<ignoreVersion type="regex">(?i).*-eap-\d+</ignoreVersion>
13+
<!-- ignore like kotlinx-coroutines-core 1.3.0-M1 -->
14+
<ignoreVersion type="regex">.*-M\d+(-.*)?</ignoreVersion>
15+
<!-- ignore like kotlin-stdlib 1.3.0-rc-190, scala-library 2.13.0-RC1, kotlinx-coroutines-core 1.3.0-RC -->
16+
<ignoreVersion type="regex">(?i).*-rc(-?\d+(-.*)?)?</ignoreVersion>
17+
<ignoreVersion>.*-does-not-exist</ignoreVersion>
18+
<!-- ignore like kotlin-stdlib 1.3.50-dev-1896 -->
19+
<ignoreVersion type="regex">(?i).*-dev-?\d+(-.*)?</ignoreVersion>
20+
<ignoreVersion type="regex">.*(-does)?-not-exist</ignoreVersion>
21+
</ignoreVersions>
22+
<rules>
23+
<rule groupId="org.jetbrains.kotlinx">
24+
<!-- ignore native dependency version like org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.5-native-mt -->
25+
<ignoreVersions>
26+
<ignoreVersion type="regex">.*-native-.*</ignoreVersion>
27+
</ignoreVersions>
28+
</rule>
29+
</rules>
30+
</ruleset>

0 commit comments

Comments
 (0)