Skip to content

Commit fb42927

Browse files
imjalpreetZacBlanco
authored andcommitted
Upgrade airbase for Java 21
Java 17 Upgrade fix artifact naming java 21 fixes revert jitpack renaming remove slice from airbase There is a circular dependency here because slice uses airbase as a parent, but airbase specifies slice as a dependency
1 parent 1b42fd6 commit fb42927

File tree

4 files changed

+100
-81
lines changed

4 files changed

+100
-81
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Airbase provides versions for the following well-known dependencies:
329329
<tr><th>Dependency name</th><th>Group/Artifact Ids</th></tr>
330330
<tr>
331331
<td>Google Guice</td>
332-
<td><tt>com.google.inject:guice</tt><p/><tt>com.google.inject.extensions:guice-servlet</tt><p/><tt>com.google.inject.extensions:guice-assistedinject</tt><p/><tt>com.google.inject.extensions:guice-multibindings</tt><p/><tt>com.google.inject.extensions:guice-throwingproviders</tt></td>
332+
<td><tt>com.google.inject:guice</tt><p/><tt>com.google.inject.extensions:guice-servlet</tt><p/><tt>com.google.inject.extensions:guice-assistedinject</tt><p/><tt>com.google.inject.extensions:guice-throwingproviders</tt></td>
333333
</tr>
334334
<tr>
335335
<td>Google Guava</td>

airbase-policy/pom.xml

+13
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,17 @@
1111
<artifactId>airbase-policy</artifactId>
1212

1313
<description>Policy files for Airbase</description>
14+
15+
<build>
16+
<plugins>
17+
<plugin>
18+
<groupId>org.apache.maven.plugins</groupId>
19+
<artifactId>maven-resources-plugin</artifactId>
20+
<version>${dep.maven-resources-plugin.version}</version>
21+
<configuration>
22+
<encoding>UTF-8</encoding>
23+
</configuration>
24+
</plugin>
25+
</plugins>
26+
</build>
1427
</project>

airbase/pom.xml

+80-75
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@
7979
<properties>
8080
<!-- see http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding -->
8181
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
82-
<project.build.targetJdk>1.8</project.build.targetJdk>
82+
<project.build.targetJdk>21</project.build.targetJdk>
8383
<project.report.outputEncoding>UTF-8</project.report.outputEncoding>
8484
<project.report.inputEncoding>UTF-8</project.report.inputEncoding>
8585

86+
8687
<!-- airlift build specific options are prefixed air.build. -->
8788

8889
<!-- Default jvm size for compiler, tests etc. -->
@@ -176,19 +177,19 @@
176177
<dep.packaging.version>0.163</dep.packaging.version>
177178

178179
<!-- Dependency versions that should be the same everywhere. -->
179-
<dep.guice.version>4.2.2</dep.guice.version>
180-
<dep.guava.version>26.0-jre</dep.guava.version>
181-
<dep.slf4j.version>1.7.25</dep.slf4j.version>
180+
<dep.guice.version>5.0.1</dep.guice.version>
181+
<dep.guava.version>32.1.0-jre</dep.guava.version>
182+
<dep.slf4j.version>2.0.16</dep.slf4j.version>
182183
<dep.logback.version>1.2.3</dep.logback.version>
183184
<dep.javax-inject.version>1</dep.javax-inject.version>
184185
<dep.javax-validation.version>2.0.1.Final</dep.javax-validation.version>
185186
<dep.javax-servlet.version>3.1.0</dep.javax-servlet.version>
186187
<dep.bval.version>2.0.0</dep.bval.version>
187-
<dep.jackson.version>2.10.0</dep.jackson.version>
188+
<dep.jackson.version>2.11.0</dep.jackson.version>
188189
<dep.jmxutils.version>1.19</dep.jmxutils.version>
189-
<dep.cglib.version>3.2.5</dep.cglib.version>
190+
<dep.cglib.version>3.3.0</dep.cglib.version>
190191
<dep.joda.version>2.9.9</dep.joda.version>
191-
<dep.spotbugs-annotations.version>3.1.10</dep.spotbugs-annotations.version>
192+
<dep.spotbugs-annotations.version>4.8.6</dep.spotbugs-annotations.version>
192193
<dep.testng.version>6.9.6</dep.testng.version>
193194
<dep.assertj-core.version>3.5.2</dep.assertj-core.version>
194195
<dep.assertj-guava.version>3.1.0</dep.assertj-guava.version>
@@ -197,7 +198,6 @@
197198
<dep.hamcrest.version>1.3</dep.hamcrest.version>
198199
<dep.mockito.version>1.9.5</dep.mockito.version>
199200
<dep.objenesis.version>1.3</dep.objenesis.version>
200-
<dep.slice.version>0.34</dep.slice.version>
201201
<dep.jmh.version>1.20</dep.jmh.version>
202202

203203
<!-- license headers -->
@@ -211,6 +211,8 @@
211211

212212
<!-- nexus-staging-maven-plugin version -->
213213
<dep.nexus-staging-plugin.version>1.6.8</dep.nexus-staging-plugin.version>
214+
<dep.maven-resources-plugin.version>3.3.1</dep.maven-resources-plugin.version>
215+
<dep.plugin.pmd-runtime.version>7.7.0</dep.plugin.pmd-runtime.version>
214216
</properties>
215217

216218
<build>
@@ -242,6 +244,9 @@
242244
<groupId>org.apache.maven.plugins</groupId>
243245
<artifactId>maven-deploy-plugin</artifactId>
244246
<version>3.1.1</version>
247+
<configuration>
248+
<allowIncompleteProjects>true</allowIncompleteProjects>
249+
</configuration>
245250
</plugin>
246251

247252
<plugin>
@@ -254,6 +259,9 @@
254259
<groupId>org.apache.maven.plugins</groupId>
255260
<artifactId>maven-install-plugin</artifactId>
256261
<version>3.1.1</version>
262+
<configuration>
263+
<allowIncompleteProjects>true</allowIncompleteProjects>
264+
</configuration>
257265
</plugin>
258266

259267
<plugin>
@@ -265,12 +273,12 @@
265273
<plugin>
266274
<groupId>org.apache.maven.plugins</groupId>
267275
<artifactId>maven-enforcer-plugin</artifactId>
268-
<version>3.0.0-M2</version>
276+
<version>3.5.0</version>
269277
<dependencies>
270278
<dependency>
271279
<groupId>org.codehaus.mojo</groupId>
272280
<artifactId>extra-enforcer-rules</artifactId>
273-
<version>1.1</version>
281+
<version>1.9.0</version>
274282
</dependency>
275283
</dependencies>
276284
<executions>
@@ -345,16 +353,7 @@
345353
<plugin>
346354
<groupId>org.apache.maven.plugins</groupId>
347355
<artifactId>maven-dependency-plugin</artifactId>
348-
<version>3.1.1</version>
349-
<dependencies>
350-
<!-- TODO: remove after updating to 3.1.2 -->
351-
<!-- see https://issues.apache.org/jira/browse/MDEP-613 -->
352-
<dependency>
353-
<groupId>org.apache.maven.shared</groupId>
354-
<artifactId>maven-dependency-analyzer</artifactId>
355-
<version>1.11.1</version>
356-
</dependency>
357-
</dependencies>
356+
<version>3.8.1</version>
358357
<configuration>
359358
<skip>${air.check.skip-dependency}</skip>
360359
<failOnWarning>${air.check.fail-dependency}</failOnWarning>
@@ -387,7 +386,7 @@
387386
<fork>true</fork>
388387
<compilerArgs>
389388
<!-- Revert to <parameters>true</parameters> once IntelliJ 183.888 is widespread -->
390-
<arg>-parameters</arg>
389+
<parameters>true</parameters>
391390
</compilerArgs>
392391
</configuration>
393392
</plugin>
@@ -396,7 +395,7 @@
396395
<plugin>
397396
<groupId>org.apache.maven.plugins</groupId>
398397
<artifactId>maven-resources-plugin</artifactId>
399-
<version>2.6</version>
398+
<version>${dep.maven-resources-plugin.version}</version>
400399
<configuration>
401400
<encoding>${project.build.sourceEncoding}</encoding>
402401
</configuration>
@@ -667,7 +666,7 @@
667666
<plugin>
668667
<groupId>com.github.spotbugs</groupId>
669668
<artifactId>spotbugs-maven-plugin</artifactId>
670-
<version>3.1.10</version>
669+
<version>4.8.6.5</version>
671670
<configuration>
672671
<skip>${air.check.skip-spotbugs}</skip>
673672
<jvmArgs>-Xmx${air.build.jvmsize}</jvmArgs>
@@ -687,12 +686,11 @@
687686
<plugin>
688687
<groupId>org.apache.maven.plugins</groupId>
689688
<artifactId>maven-pmd-plugin</artifactId>
690-
<version>3.11.0</version>
689+
<version>3.26.0</version>
691690
<configuration>
692691
<skip>${air.check.skip-pmd}</skip>
693692
<failOnViolation>${air.check.fail-pmd}</failOnViolation>
694693
<targetJdk>${project.build.targetJdk}</targetJdk>
695-
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
696694
<minimumTokens>100</minimumTokens>
697695
<excludes>
698696
<exclude>**/*Bean.java</exclude>
@@ -702,9 +700,10 @@
702700
<excludeRoot>target/generated-sources/stubs</excludeRoot>
703701
</excludeRoots>
704702
<rulesets>
705-
<ruleset>/rulesets/java/basic.xml</ruleset>
706-
<ruleset>/rulesets/java/clone.xml</ruleset>
707-
<ruleset>/rulesets/java/finalizers.xml</ruleset>
703+
<ruleset>/category/java/performance.xml</ruleset>
704+
<!-- These generate hundreds of errors across the codebase -->
705+
<!-- <ruleset>/category/java/bestpractices.xml</ruleset> -->
706+
<!-- <ruleset>/category/java/errorprone.xml</ruleset> -->
708707
</rulesets>
709708
</configuration>
710709
<executions>
@@ -736,7 +735,6 @@
736735
<skip>${air.check.skip-license}</skip>
737736
<skipExistingHeaders>true</skipExistingHeaders>
738737
<failIfMissing>${air.check.fail-license}</failIfMissing>
739-
<header>${air.license.header-file}</header>
740738
<mapping>
741739
<java>SLASHSTAR_STYLE</java>
742740
<g>SLASHSTAR_STYLE</g>
@@ -745,41 +743,46 @@
745743
<properties>
746744
<inceptionYear>${project.inceptionYear}</inceptionYear>
747745
</properties>
748-
<headerSections>
749-
<headerSection>
750-
<key>COPYRIGHT_SECTION</key>
751-
<defaultValue>${air.license.default-value}</defaultValue>
752-
<ensureMatch>${air.license.ensure-match}</ensureMatch>
753-
<multiLineMatch>false</multiLineMatch>
754-
</headerSection>
755-
</headerSections>
756746
<strictCheck>true</strictCheck>
757747
<aggregate>true</aggregate>
758748
<useDefaultExcludes>true</useDefaultExcludes>
759749
<encoding>${project.build.sourceEncoding}</encoding>
760-
<excludes>
761-
<exclude>.*/**</exclude>
762-
<exclude>**/*.md</exclude>
763-
<exclude>**/*.sh</exclude>
764-
<exclude>**/*.txt</exclude>
765-
<exclude>**/*.thrift</exclude>
766-
<exclude>**/*.sql</exclude>
767-
<exclude>**/*.releaseBackup</exclude>
768-
<exclude>**/*.st</exclude>
769-
<exclude>**/*.raw</exclude>
770-
<exclude>**/*.ser</exclude>
771-
<exclude>**/*.html</exclude>
772-
<exclude>**/*.rst</exclude>
773-
<exclude>**/*.xml</exclude>
774-
<exclude>**/*.csv</exclude>
775-
<exclude>**/*.tsv</exclude>
776-
<exclude>**/*.properties</exclude>
777-
<exclude>**/src/license/**</exclude>
778-
<exclude>**/src/*/resources/**</exclude>
779-
</excludes>
780-
<includes>
781-
<include>src/**</include>
782-
</includes>
750+
<licenseSets>
751+
<licenseSet>
752+
<header>${air.license.header-file}</header>
753+
<headerSections>
754+
<headerSection>
755+
<key>COPYRIGHT_SECTION</key>
756+
<defaultValue>${air.license.default-value}</defaultValue>
757+
<ensureMatch>${air.license.ensure-match}</ensureMatch>
758+
<multiLineMatch>false</multiLineMatch>
759+
</headerSection>
760+
</headerSections>
761+
<excludes>
762+
<exclude>.*/**</exclude>
763+
<exclude>**/*.md</exclude>
764+
<exclude>**/*.sh</exclude>
765+
<exclude>**/*.txt</exclude>
766+
<exclude>**/*.thrift</exclude>
767+
<exclude>**/*.sql</exclude>
768+
<exclude>**/*.releaseBackup</exclude>
769+
<exclude>**/*.st</exclude>
770+
<exclude>**/*.raw</exclude>
771+
<exclude>**/*.ser</exclude>
772+
<exclude>**/*.html</exclude>
773+
<exclude>**/*.rst</exclude>
774+
<exclude>**/*.xml</exclude>
775+
<exclude>**/*.csv</exclude>
776+
<exclude>**/*.tsv</exclude>
777+
<exclude>**/*.properties</exclude>
778+
<exclude>**/src/license/**</exclude>
779+
<exclude>**/src/*/resources/**</exclude>
780+
</excludes>
781+
<includes>
782+
<include>src/**</include>
783+
</includes>
784+
</licenseSet>
785+
</licenseSets>
783786
</configuration>
784787
<executions>
785788
<execution>
@@ -795,7 +798,7 @@
795798
<plugin>
796799
<groupId>org.jacoco</groupId>
797800
<artifactId>jacoco-maven-plugin</artifactId>
798-
<version>0.8.6</version>
801+
<version>0.8.12</version>
799802
<executions>
800803
<execution>
801804
<id>default</id>
@@ -819,7 +822,7 @@
819822
<plugin>
820823
<groupId>org.gaul</groupId>
821824
<artifactId>modernizer-maven-plugin</artifactId>
822-
<version>1.7.1</version>
825+
<version>2.9.0</version>
823826
<configuration>
824827
<skip>${air.check.skip-modernizer}</skip>
825828
<failOnViolations>${air.check.fail-modernizer}</failOnViolations>
@@ -838,12 +841,12 @@
838841
<plugin>
839842
<groupId>org.apache.maven.plugins</groupId>
840843
<artifactId>maven-checkstyle-plugin</artifactId>
841-
<version>3.0.0</version>
844+
<version>3.6.0</version>
842845
<dependencies>
843846
<dependency>
844847
<groupId>com.puppycrawl.tools</groupId>
845848
<artifactId>checkstyle</artifactId>
846-
<version>8.16</version>
849+
<version>10.19.0</version>
847850
</dependency>
848851
<!-- This version must match the Airbase version. It will be updated by -->
849852
<!-- the Maven Release plugin. The "project.version" property cannot be -->
@@ -1020,11 +1023,6 @@
10201023
<artifactId>guice-assistedinject</artifactId>
10211024
<version>${dep.guice.version}</version>
10221025
</dependency>
1023-
<dependency>
1024-
<groupId>com.google.inject.extensions</groupId>
1025-
<artifactId>guice-multibindings</artifactId>
1026-
<version>${dep.guice.version}</version>
1027-
</dependency>
10281026
<dependency>
10291027
<groupId>com.google.inject.extensions</groupId>
10301028
<artifactId>guice-throwingproviders</artifactId>
@@ -1163,6 +1161,12 @@
11631161
<groupId>com.fasterxml.jackson.datatype</groupId>
11641162
<artifactId>jackson-datatype-guava</artifactId>
11651163
<version>${dep.jackson.version}</version>
1164+
<exclusions>
1165+
<exclusion>
1166+
<groupId>com.google.guava</groupId>
1167+
<artifactId>guava</artifactId>
1168+
</exclusion>
1169+
</exclusions>
11661170
</dependency>
11671171

11681172
<dependency>
@@ -1239,6 +1243,13 @@
12391243
<version>${dep.jmh.version}</version>
12401244
</dependency>
12411245

1246+
<!-- Modernizer warnings -->
1247+
<dependency>
1248+
<groupId>org.gaul</groupId>
1249+
<artifactId>modernizer-maven-annotations</artifactId>
1250+
<version>2.9.0</version>
1251+
</dependency>
1252+
12421253
<!-- Testing -->
12431254
<dependency>
12441255
<groupId>org.testng</groupId>
@@ -1302,12 +1313,6 @@
13021313
<artifactId>objenesis</artifactId>
13031314
<version>${dep.objenesis.version}</version>
13041315
</dependency>
1305-
1306-
<dependency>
1307-
<groupId>io.airlift</groupId>
1308-
<artifactId>slice</artifactId>
1309-
<version>${dep.slice.version}</version>
1310-
</dependency>
13111316
</dependencies>
13121317
</dependencyManagement>
13131318

0 commit comments

Comments
 (0)