Skip to content

Commit 0c3a197

Browse files
imjalpreetZacBlanco
authored andcommitted
Upgrade airbase for Java 21
Java 17 Upgrade fix artifact naming java 21 fixes revert jitpack renaming
1 parent 1b42fd6 commit 0c3a197

File tree

4 files changed

+79
-67
lines changed

4 files changed

+79
-67
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 13 additions & 0 deletions
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

Lines changed: 59 additions & 61 deletions
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,8 +177,8 @@
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>
180+
<dep.guice.version>5.0.1</dep.guice.version>
181+
<dep.guava.version>32.1.0-jre</dep.guava.version>
181182
<dep.slf4j.version>1.7.25</dep.slf4j.version>
182183
<dep.logback.version>1.2.3</dep.logback.version>
183184
<dep.javax-inject.version>1</dep.javax-inject.version>
@@ -188,7 +189,7 @@
188189
<dep.jmxutils.version>1.19</dep.jmxutils.version>
189190
<dep.cglib.version>3.2.5</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,7 @@
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>
201+
<dep.slice.version>0.38-SNAPSHOT</dep.slice.version>
201202
<dep.jmh.version>1.20</dep.jmh.version>
202203

203204
<!-- license headers -->
@@ -211,6 +212,7 @@
211212

212213
<!-- nexus-staging-maven-plugin version -->
213214
<dep.nexus-staging-plugin.version>1.6.8</dep.nexus-staging-plugin.version>
215+
<dep.maven-resources-plugin.version>3.3.1</dep.maven-resources-plugin.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>
@@ -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,12 @@
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>
691+
692692
<skip>${air.check.skip-pmd}</skip>
693693
<failOnViolation>${air.check.fail-pmd}</failOnViolation>
694694
<targetJdk>${project.build.targetJdk}</targetJdk>
695-
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
696695
<minimumTokens>100</minimumTokens>
697696
<excludes>
698697
<exclude>**/*Bean.java</exclude>
@@ -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>
@@ -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>
@@ -1304,7 +1302,7 @@
13041302
</dependency>
13051303

13061304
<dependency>
1307-
<groupId>io.airlift</groupId>
1305+
<groupId>com.facebook.airlift</groupId>
13081306
<artifactId>slice</artifactId>
13091307
<version>${dep.slice.version}</version>
13101308
</dependency>

pom.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
<properties>
1616
<dep.nexus-staging-plugin.version>1.6.8</dep.nexus-staging-plugin.version>
17+
<dep.maven-resources-plugin.version>3.3.1</dep.maven-resources-plugin.version>
1718
</properties>
1819

1920
<licenses>
@@ -62,7 +63,7 @@
6263
<plugin>
6364
<groupId>org.apache.maven.plugins</groupId>
6465
<artifactId>maven-release-plugin</artifactId>
65-
<version>2.5.3</version>
66+
<version>3.1.1</version>
6667
<configuration>
6768
<releaseProfiles>oss-release</releaseProfiles>
6869
<mavenExecutorId>forked-path</mavenExecutorId>
@@ -78,7 +79,7 @@
7879
<plugin>
7980
<groupId>org.apache.maven.plugins</groupId>
8081
<artifactId>maven-javadoc-plugin</artifactId>
81-
<version>3.0.0</version>
82+
<version>3.10.1</version>
8283
<executions>
8384
<execution>
8485
<id>attach-javadocs</id>
@@ -92,7 +93,7 @@
9293
<plugin>
9394
<groupId>org.apache.maven.plugins</groupId>
9495
<artifactId>maven-source-plugin</artifactId>
95-
<version>3.0.1</version>
96+
<version>3.3.1</version>
9697
<executions>
9798
<execution>
9899
<id>attach-sources</id>
@@ -106,7 +107,7 @@
106107
<plugin>
107108
<groupId>org.apache.maven.plugins</groupId>
108109
<artifactId>maven-gpg-plugin</artifactId>
109-
<version>1.6</version>
110+
<version>3.2.7</version>
110111
<configuration>
111112
<useAgent>true</useAgent>
112113
</configuration>
@@ -148,7 +149,7 @@
148149
<plugin>
149150
<groupId>org.apache.maven.plugins</groupId>
150151
<artifactId>maven-gpg-plugin</artifactId>
151-
<version>3.2.4</version>
152+
<version>3.2.7</version>
152153
<configuration>
153154
<gpgArguments>
154155
<arg>--pinentry-mode</arg>

0 commit comments

Comments
 (0)