Fixed for Java 17

This commit is contained in:
Sebastiano Vigna 2022-12-09 17:53:16 +01:00
parent d6c4cffd9a
commit 0fda8c3874

View file

@ -1,5 +1,4 @@
<project name="fastutil" default="jar" basedir="."
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<project name="fastutil" default="jar" basedir=".">
<property name="build.sysclasspath" value="ignore"/>
<property file="build.properties"/>
@ -114,19 +113,9 @@
</copy>
</target>
<target name="deploy-core" depends="pom-core,dist-core" description="deploy core snapshot version to Maven snapshot repository (core)">
<artifact:mvn>
<arg value="org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file" />
<arg value="-Durl=${maven-snapshots-repository-url}" />
<arg value="-DrepositoryId=${maven-snapshots-repository-id}" />
<arg value="-DpomFile=${build}/pom-core.xml" />
<arg value="-Dfile=${maven-core-jar}" />
</artifact:mvn>
</target>
<target name="stage-core" depends="pom-core,dist-core" description="deploy core release version to Maven staging repository (core)">
<!-- sign and deploy the main artifact -->
<artifact:mvn>
<artifact:mvn fork="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${maven-staging-repository-url}" />
<arg value="-DrepositoryId=${maven-staging-repository-id}" />
@ -136,7 +125,7 @@
</artifact:mvn>
<!-- sign and deploy the sources artifact -->
<artifact:mvn>
<artifact:mvn fork="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${maven-staging-repository-url}" />
<arg value="-DrepositoryId=${maven-staging-repository-id}" />
@ -147,7 +136,7 @@
</artifact:mvn>
<!-- sign and deploy the javadoc artifact -->
<artifact:mvn>
<artifact:mvn fork="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${maven-staging-repository-url}" />
<arg value="-DrepositoryId=${maven-staging-repository-id}" />
@ -158,19 +147,9 @@
</artifact:mvn>
</target>
<target name="deploy" depends="pom,dist" description="deploy snapshot version to Maven snapshot repository">
<artifact:mvn>
<arg value="org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file" />
<arg value="-Durl=${maven-snapshots-repository-url}" />
<arg value="-DrepositoryId=${maven-snapshots-repository-id}" />
<arg value="-DpomFile=${build}/pom.xml" />
<arg value="-Dfile=${maven-jar}" />
</artifact:mvn>
</target>
<target name="stage" depends="pom,dist" description="deploy release version to Maven staging repository">
<!-- sign and deploy the main artifact -->
<artifact:mvn>
<artifact:mvn fork="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${maven-staging-repository-url}" />
<arg value="-DrepositoryId=${maven-staging-repository-id}" />
@ -180,7 +159,7 @@
</artifact:mvn>
<!-- sign and deploy the sources artifact -->
<artifact:mvn>
<artifact:mvn fork="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${maven-staging-repository-url}" />
<arg value="-DrepositoryId=${maven-staging-repository-id}" />
@ -191,7 +170,7 @@
</artifact:mvn>
<!-- sign and deploy the javadoc artifact -->
<artifact:mvn>
<artifact:mvn fork="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${maven-staging-repository-url}" />
<arg value="-DrepositoryId=${maven-staging-repository-id}" />
@ -202,9 +181,6 @@
</artifact:mvn>
</target>
<target name="deploy-all" depends="deploy-core,deploy" description="deploy all release versions to Maven staging repository">
</target>
<target name="stage-all" depends="stage-core,stage" description="stage all release versions to Maven staging repository">
</target>
<!-- ************************************** END OF MAVEN SH*T ************************************** -->