|
79 | 79 | <properties> |
80 | 80 | <!-- see http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding --> |
81 | 81 | <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> |
83 | 83 | <project.report.outputEncoding>UTF-8</project.report.outputEncoding> |
84 | 84 | <project.report.inputEncoding>UTF-8</project.report.inputEncoding> |
85 | 85 |
|
| 86 | + |
86 | 87 | <!-- airlift build specific options are prefixed air.build. --> |
87 | 88 |
|
88 | 89 | <!-- Default jvm size for compiler, tests etc. --> |
|
176 | 177 | <dep.packaging.version>0.163</dep.packaging.version> |
177 | 178 |
|
178 | 179 | <!-- 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> |
182 | 183 | <dep.logback.version>1.2.3</dep.logback.version> |
183 | 184 | <dep.javax-inject.version>1</dep.javax-inject.version> |
184 | 185 | <dep.javax-validation.version>2.0.1.Final</dep.javax-validation.version> |
185 | 186 | <dep.javax-servlet.version>3.1.0</dep.javax-servlet.version> |
186 | 187 | <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> |
188 | 189 | <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> |
190 | 191 | <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> |
192 | 193 | <dep.testng.version>6.9.6</dep.testng.version> |
193 | 194 | <dep.assertj-core.version>3.5.2</dep.assertj-core.version> |
194 | 195 | <dep.assertj-guava.version>3.1.0</dep.assertj-guava.version> |
|
197 | 198 | <dep.hamcrest.version>1.3</dep.hamcrest.version> |
198 | 199 | <dep.mockito.version>1.9.5</dep.mockito.version> |
199 | 200 | <dep.objenesis.version>1.3</dep.objenesis.version> |
200 | | - <dep.slice.version>0.34</dep.slice.version> |
201 | 201 | <dep.jmh.version>1.20</dep.jmh.version> |
202 | 202 |
|
203 | 203 | <!-- license headers --> |
|
211 | 211 |
|
212 | 212 | <!-- nexus-staging-maven-plugin version --> |
213 | 213 | <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> |
214 | 216 | </properties> |
215 | 217 |
|
216 | 218 | <build> |
|
242 | 244 | <groupId>org.apache.maven.plugins</groupId> |
243 | 245 | <artifactId>maven-deploy-plugin</artifactId> |
244 | 246 | <version>3.1.1</version> |
| 247 | + <configuration> |
| 248 | + <allowIncompleteProjects>true</allowIncompleteProjects> |
| 249 | + </configuration> |
245 | 250 | </plugin> |
246 | 251 |
|
247 | 252 | <plugin> |
|
254 | 259 | <groupId>org.apache.maven.plugins</groupId> |
255 | 260 | <artifactId>maven-install-plugin</artifactId> |
256 | 261 | <version>3.1.1</version> |
| 262 | + <configuration> |
| 263 | + <allowIncompleteProjects>true</allowIncompleteProjects> |
| 264 | + </configuration> |
257 | 265 | </plugin> |
258 | 266 |
|
259 | 267 | <plugin> |
|
265 | 273 | <plugin> |
266 | 274 | <groupId>org.apache.maven.plugins</groupId> |
267 | 275 | <artifactId>maven-enforcer-plugin</artifactId> |
268 | | - <version>3.0.0-M2</version> |
| 276 | + <version>3.5.0</version> |
269 | 277 | <dependencies> |
270 | 278 | <dependency> |
271 | 279 | <groupId>org.codehaus.mojo</groupId> |
272 | 280 | <artifactId>extra-enforcer-rules</artifactId> |
273 | | - <version>1.1</version> |
| 281 | + <version>1.9.0</version> |
274 | 282 | </dependency> |
275 | 283 | </dependencies> |
276 | 284 | <executions> |
|
345 | 353 | <plugin> |
346 | 354 | <groupId>org.apache.maven.plugins</groupId> |
347 | 355 | <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> |
358 | 357 | <configuration> |
359 | 358 | <skip>${air.check.skip-dependency}</skip> |
360 | 359 | <failOnWarning>${air.check.fail-dependency}</failOnWarning> |
|
385 | 384 | <maxmem>${air.build.jvmsize}</maxmem> |
386 | 385 | <showWarnings>true</showWarnings> |
387 | 386 | <fork>true</fork> |
388 | | - <compilerArgs> |
389 | | - <!-- Revert to <parameters>true</parameters> once IntelliJ 183.888 is widespread --> |
390 | | - <arg>-parameters</arg> |
391 | | - </compilerArgs> |
| 387 | + <parameters>true</parameters> |
392 | 388 | </configuration> |
393 | 389 | </plugin> |
394 | 390 |
|
395 | 391 | <!-- Resource plugins should always use UTF-8 --> |
396 | 392 | <plugin> |
397 | 393 | <groupId>org.apache.maven.plugins</groupId> |
398 | 394 | <artifactId>maven-resources-plugin</artifactId> |
399 | | - <version>2.6</version> |
| 395 | + <version>${dep.maven-resources-plugin.version}</version> |
400 | 396 | <configuration> |
401 | 397 | <encoding>${project.build.sourceEncoding}</encoding> |
402 | 398 | </configuration> |
|
667 | 663 | <plugin> |
668 | 664 | <groupId>com.github.spotbugs</groupId> |
669 | 665 | <artifactId>spotbugs-maven-plugin</artifactId> |
670 | | - <version>3.1.10</version> |
| 666 | + <version>4.8.6.5</version> |
671 | 667 | <configuration> |
672 | 668 | <skip>${air.check.skip-spotbugs}</skip> |
673 | 669 | <jvmArgs>-Xmx${air.build.jvmsize}</jvmArgs> |
|
687 | 683 | <plugin> |
688 | 684 | <groupId>org.apache.maven.plugins</groupId> |
689 | 685 | <artifactId>maven-pmd-plugin</artifactId> |
690 | | - <version>3.11.0</version> |
| 686 | + <version>3.26.0</version> |
691 | 687 | <configuration> |
692 | 688 | <skip>${air.check.skip-pmd}</skip> |
693 | 689 | <failOnViolation>${air.check.fail-pmd}</failOnViolation> |
694 | 690 | <targetJdk>${project.build.targetJdk}</targetJdk> |
695 | | - <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding> |
696 | 691 | <minimumTokens>100</minimumTokens> |
697 | 692 | <excludes> |
698 | 693 | <exclude>**/*Bean.java</exclude> |
|
702 | 697 | <excludeRoot>target/generated-sources/stubs</excludeRoot> |
703 | 698 | </excludeRoots> |
704 | 699 | <rulesets> |
705 | | - <ruleset>/rulesets/java/basic.xml</ruleset> |
706 | | - <ruleset>/rulesets/java/clone.xml</ruleset> |
707 | | - <ruleset>/rulesets/java/finalizers.xml</ruleset> |
| 700 | + <ruleset>/category/java/performance.xml</ruleset> |
| 701 | + <!-- These generate hundreds of errors across the codebase --> |
| 702 | + <!-- <ruleset>/category/java/bestpractices.xml</ruleset> --> |
| 703 | + <!-- <ruleset>/category/java/errorprone.xml</ruleset> --> |
708 | 704 | </rulesets> |
709 | 705 | </configuration> |
710 | 706 | <executions> |
|
736 | 732 | <skip>${air.check.skip-license}</skip> |
737 | 733 | <skipExistingHeaders>true</skipExistingHeaders> |
738 | 734 | <failIfMissing>${air.check.fail-license}</failIfMissing> |
739 | | - <header>${air.license.header-file}</header> |
740 | 735 | <mapping> |
741 | 736 | <java>SLASHSTAR_STYLE</java> |
742 | 737 | <g>SLASHSTAR_STYLE</g> |
|
745 | 740 | <properties> |
746 | 741 | <inceptionYear>${project.inceptionYear}</inceptionYear> |
747 | 742 | </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> |
756 | 743 | <strictCheck>true</strictCheck> |
757 | 744 | <aggregate>true</aggregate> |
758 | 745 | <useDefaultExcludes>true</useDefaultExcludes> |
759 | 746 | <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> |
| 747 | + <licenseSets> |
| 748 | + <licenseSet> |
| 749 | + <header>${air.license.header-file}</header> |
| 750 | + <headerSections> |
| 751 | + <headerSection> |
| 752 | + <key>COPYRIGHT_SECTION</key> |
| 753 | + <defaultValue>${air.license.default-value}</defaultValue> |
| 754 | + <ensureMatch>${air.license.ensure-match}</ensureMatch> |
| 755 | + <multiLineMatch>false</multiLineMatch> |
| 756 | + </headerSection> |
| 757 | + </headerSections> |
| 758 | + <excludes> |
| 759 | + <exclude>.*/**</exclude> |
| 760 | + <exclude>**/*.md</exclude> |
| 761 | + <exclude>**/*.sh</exclude> |
| 762 | + <exclude>**/*.txt</exclude> |
| 763 | + <exclude>**/*.thrift</exclude> |
| 764 | + <exclude>**/*.sql</exclude> |
| 765 | + <exclude>**/*.releaseBackup</exclude> |
| 766 | + <exclude>**/*.st</exclude> |
| 767 | + <exclude>**/*.raw</exclude> |
| 768 | + <exclude>**/*.ser</exclude> |
| 769 | + <exclude>**/*.html</exclude> |
| 770 | + <exclude>**/*.rst</exclude> |
| 771 | + <exclude>**/*.xml</exclude> |
| 772 | + <exclude>**/*.csv</exclude> |
| 773 | + <exclude>**/*.tsv</exclude> |
| 774 | + <exclude>**/*.properties</exclude> |
| 775 | + <exclude>**/src/license/**</exclude> |
| 776 | + <exclude>**/src/*/resources/**</exclude> |
| 777 | + </excludes> |
| 778 | + <includes> |
| 779 | + <include>src/**</include> |
| 780 | + </includes> |
| 781 | + </licenseSet> |
| 782 | + </licenseSets> |
783 | 783 | </configuration> |
784 | 784 | <executions> |
785 | 785 | <execution> |
|
795 | 795 | <plugin> |
796 | 796 | <groupId>org.jacoco</groupId> |
797 | 797 | <artifactId>jacoco-maven-plugin</artifactId> |
798 | | - <version>0.8.6</version> |
| 798 | + <version>0.8.12</version> |
799 | 799 | <executions> |
800 | 800 | <execution> |
801 | 801 | <id>default</id> |
|
819 | 819 | <plugin> |
820 | 820 | <groupId>org.gaul</groupId> |
821 | 821 | <artifactId>modernizer-maven-plugin</artifactId> |
822 | | - <version>1.7.1</version> |
| 822 | + <version>2.9.0</version> |
823 | 823 | <configuration> |
824 | 824 | <skip>${air.check.skip-modernizer}</skip> |
825 | 825 | <failOnViolations>${air.check.fail-modernizer}</failOnViolations> |
|
838 | 838 | <plugin> |
839 | 839 | <groupId>org.apache.maven.plugins</groupId> |
840 | 840 | <artifactId>maven-checkstyle-plugin</artifactId> |
841 | | - <version>3.0.0</version> |
| 841 | + <version>3.6.0</version> |
842 | 842 | <dependencies> |
843 | 843 | <dependency> |
844 | 844 | <groupId>com.puppycrawl.tools</groupId> |
845 | 845 | <artifactId>checkstyle</artifactId> |
846 | | - <version>8.16</version> |
| 846 | + <version>10.19.0</version> |
847 | 847 | </dependency> |
848 | 848 | <!-- This version must match the Airbase version. It will be updated by --> |
849 | 849 | <!-- the Maven Release plugin. The "project.version" property cannot be --> |
|
1020 | 1020 | <artifactId>guice-assistedinject</artifactId> |
1021 | 1021 | <version>${dep.guice.version}</version> |
1022 | 1022 | </dependency> |
1023 | | - <dependency> |
1024 | | - <groupId>com.google.inject.extensions</groupId> |
1025 | | - <artifactId>guice-multibindings</artifactId> |
1026 | | - <version>${dep.guice.version}</version> |
1027 | | - </dependency> |
1028 | 1023 | <dependency> |
1029 | 1024 | <groupId>com.google.inject.extensions</groupId> |
1030 | 1025 | <artifactId>guice-throwingproviders</artifactId> |
|
1163 | 1158 | <groupId>com.fasterxml.jackson.datatype</groupId> |
1164 | 1159 | <artifactId>jackson-datatype-guava</artifactId> |
1165 | 1160 | <version>${dep.jackson.version}</version> |
| 1161 | + <exclusions> |
| 1162 | + <exclusion> |
| 1163 | + <groupId>com.google.guava</groupId> |
| 1164 | + <artifactId>guava</artifactId> |
| 1165 | + </exclusion> |
| 1166 | + </exclusions> |
1166 | 1167 | </dependency> |
1167 | 1168 |
|
1168 | 1169 | <dependency> |
|
1239 | 1240 | <version>${dep.jmh.version}</version> |
1240 | 1241 | </dependency> |
1241 | 1242 |
|
| 1243 | + <!-- Modernizer warnings --> |
| 1244 | + <dependency> |
| 1245 | + <groupId>org.gaul</groupId> |
| 1246 | + <artifactId>modernizer-maven-annotations</artifactId> |
| 1247 | + <version>2.9.0</version> |
| 1248 | + </dependency> |
| 1249 | + |
1242 | 1250 | <!-- Testing --> |
1243 | 1251 | <dependency> |
1244 | 1252 | <groupId>org.testng</groupId> |
|
1302 | 1310 | <artifactId>objenesis</artifactId> |
1303 | 1311 | <version>${dep.objenesis.version}</version> |
1304 | 1312 | </dependency> |
1305 | | - |
1306 | | - <dependency> |
1307 | | - <groupId>io.airlift</groupId> |
1308 | | - <artifactId>slice</artifactId> |
1309 | | - <version>${dep.slice.version}</version> |
1310 | | - </dependency> |
1311 | 1313 | </dependencies> |
1312 | 1314 | </dependencyManagement> |
1313 | 1315 |
|
|
0 commit comments