152
152
153
153
<property name =" pom-base" value =" pom-jna.xml" />
154
154
<property name =" pom-platform-base" value =" pom-jna-platform.xml" />
155
+ <property name =" pom-jpms-base" value =" pom-jna-jpms.xml" />
156
+ <property name =" pom-platform-jpms-base" value =" pom-jna-platform-jpms.xml" />
155
157
156
158
<property name =" pom" value =" ${ build } /pom-jna.xml" />
157
159
<property name =" pom-platform" value =" ${ build } /pom-jna-platform.xml" />
160
+ <property name =" pom-jpms" value =" ${ build } /pom-jna-jpms.xml" />
161
+ <property name =" pom-platform-jpms" value =" ${ build } /pom-jna-platform-jpms.xml" />
158
162
159
163
<target name =" default" depends =" test" description =" Build and Test." />
160
164
195
199
<property name =" build.os.family" value =" other" />
196
200
<property name =" build.os.arch" value =" ${ os.arch } " />
197
201
<property name =" build.os.endianess" value =" ${ sun.cpu.endian } " />
198
-
202
+
199
203
<condition property =" -native" value =" true" >
200
204
<not ><isset property =" build-native" /></not >
201
205
</condition >
202
206
<condition property =" jni.valid" value =" true" >
203
207
<isset property =" -native" />
204
208
</condition >
205
209
206
- <copy file =" ${ pom-base } " todir =" ${ build } " />
207
- <copy file =" ${ pom-platform-base } " todir =" ${ build } " />
210
+ <copy file =" ${ pom-base } " tofile =" ${ pom } " />
211
+ <copy file =" ${ pom-platform-base } " tofile =" ${ pom-platform } " />
212
+ <copy file =" ${ pom-jpms-base } " tofile =" ${ pom-jpms } " />
213
+ <copy file =" ${ pom-platform-jpms-base } " tofile =" ${ pom-platform-jpms } " />
208
214
209
215
<replaceregexp match =" (<version>).*(</version>)"
210
216
replace =" \1${ jna.version } \2"
217
+ flags =" g"
211
218
file =" ${ pom } " />
212
219
213
220
<replaceregexp match =" (<version>).*(</version>)"
214
221
replace =" \1${ jna.version } \2"
215
222
flags =" g"
216
223
file =" ${ pom-platform } " />
217
224
225
+ <replaceregexp match =" (<version>).*(</version>)"
226
+ replace =" \1${ jna.version } \2"
227
+ flags =" g"
228
+ file =" ${ pom-jpms } " />
229
+
230
+ <replaceregexp match =" (<version>).*(</version>)"
231
+ replace =" \1${ jna.version } \2"
232
+ flags =" g"
233
+ file =" ${ pom-platform-jpms } " />
234
+
218
235
<condition property =" jar.omitted" value =" **/*jnidispatch*" else =" jnilib-included" >
219
236
<isset property =" omit-jnilib" />
220
237
</condition >
@@ -1553,10 +1570,10 @@ cd ..
1553
1570
1554
1571
<artifact : mvn failonerror =" true" >
1555
1572
<arg value =" org.apache.maven.plugins:maven-install-plugin:2.5:install-file" />
1556
- <arg value =" -DpomFile=${ pom } " />
1573
+ <arg value =" -DpomFile=${ pom-jpms } " />
1557
1574
<arg value =" -Dfile=${ dist-jar-jpms } " />
1558
- <arg value =" -Dclassifier=jpms " />
1559
- <arg value =" -Dpackaging= jar" />
1575
+ <arg value =" -Dsources= ${ maven-sources-jar } " />
1576
+ <arg value =" -Djavadoc= ${ maven-javadoc- jar} " />
1560
1577
</artifact : mvn >
1561
1578
1562
1579
<artifact : mvn failonerror =" true" >
@@ -1569,10 +1586,10 @@ cd ..
1569
1586
1570
1587
<artifact : mvn failonerror =" true" >
1571
1588
<arg value =" org.apache.maven.plugins:maven-install-plugin:2.5:install-file" />
1572
- <arg value =" -DpomFile=${ pom-platform } " />
1589
+ <arg value =" -DpomFile=${ pom-platform-jpms } " />
1573
1590
<arg value =" -Dfile=${ platform-jpms-jar } " />
1574
- <arg value =" -Dclassifier=jpms " />
1575
- <arg value =" -Dpackaging= jar" />
1591
+ <arg value =" -Dsources= ${ platform-sources-jar } " />
1592
+ <arg value =" -Djavadoc= ${ platform-javadoc- jar} " />
1576
1593
</artifact : mvn >
1577
1594
</target >
1578
1595
@@ -1584,9 +1601,9 @@ cd ..
1584
1601
<arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
1585
1602
<arg value =" -DpomFile=${ pom } " />
1586
1603
<arg value =" -Dfile=${ dist-jar } " />
1587
- <arg value =" -Dfiles=${ maven-sources-jar } ,${ maven-javadoc-jar } ,${ dist-jar-jpms } , ${ dist- aar} " />
1588
- <arg value =" -Dtypes=jar,jar,jar, aar" />
1589
- <arg value =" -Dclassifiers=sources,javadoc,jpms, " />
1604
+ <arg value =" -Dfiles=${ maven-sources-jar } ,${ maven-javadoc-jar } ,${ dist-aar } " />
1605
+ <arg value =" -Dtypes=jar,jar,aar" />
1606
+ <arg value =" -Dclassifiers=sources,javadoc," />
1590
1607
</artifact : mvn >
1591
1608
1592
1609
<artifact : mvn failonerror =" true" >
@@ -1595,9 +1612,31 @@ cd ..
1595
1612
<arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
1596
1613
<arg value =" -DpomFile=${ pom-platform } " />
1597
1614
<arg value =" -Dfile=${ platform-jar } " />
1598
- <arg value =" -Dfiles=${ platform-sources-jar } ,${ platform-javadoc-jar } , ${ platform-jpms-jar } " />
1615
+ <arg value =" -Dfiles=${ platform-sources-jar } ,${ platform-javadoc-jar } " />
1599
1616
<arg value =" -Dtypes=jar,jar,jar" />
1600
- <arg value =" -Dclassifiers=sources,javadoc,jpms" />
1617
+ <arg value =" -Dclassifiers=sources,javadoc" />
1618
+ </artifact : mvn >
1619
+
1620
+ <artifact : mvn failonerror =" true" >
1621
+ <arg value =" org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file" />
1622
+ <arg value =" -Durl=${ maven-snapshots-repository-url } " />
1623
+ <arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
1624
+ <arg value =" -DpomFile=${ pom-jpms } " />
1625
+ <arg value =" -Dfile=${ dist-jar-jpms } " />
1626
+ <arg value =" -Dfiles=${ maven-sources-jar } ,${ maven-javadoc-jar } " />
1627
+ <arg value =" -Dtypes=jar,jar" />
1628
+ <arg value =" -Dclassifiers=sources,javadoc" />
1629
+ </artifact : mvn >
1630
+
1631
+ <artifact : mvn failonerror =" true" >
1632
+ <arg value =" org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file" />
1633
+ <arg value =" -Durl=${ maven-snapshots-repository-url } " />
1634
+ <arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
1635
+ <arg value =" -DpomFile=${ pom-platform-jpms } " />
1636
+ <arg value =" -Dfile=${ platform-jpms-jar } " />
1637
+ <arg value =" -Dfiles=${ platform-sources-jar } ,${ platform-javadoc-jar } " />
1638
+ <arg value =" -Dtypes=jar,jar" />
1639
+ <arg value =" -Dclassifiers=sources,javadoc" />
1601
1640
</artifact : mvn >
1602
1641
</target >
1603
1642
@@ -1630,6 +1669,32 @@ cd ..
1630
1669
<arg value =" -Dtypes=jar,jar,jar" />
1631
1670
<arg value =" -Dgpg.useagent=true" />
1632
1671
</artifact : mvn >
1672
+
1673
+ <!-- sign and deploy the jna, artifact -->
1674
+ <artifact : mvn failonerror =" true" >
1675
+ <arg value =" org.apache.maven.plugins:maven-gpg-plugin:${ version-maven-gpg-plugin } :sign-and-deploy-file" />
1676
+ <arg value =" -Durl=${ maven-staging-repository-url } " />
1677
+ <arg value =" -DrepositoryId=${ maven-staging-repository-id } " />
1678
+ <arg value =" -DpomFile=${ pom-jpms } " />
1679
+ <arg value =" -Dfile=${ dist-jar-jpms } " />
1680
+ <arg value =" -Dfiles=${ maven-sources-jar } ,${ maven-javadoc-jar } " />
1681
+ <arg value =" -Dtypes=jar,jar" />
1682
+ <arg value =" -Dclassifiers=sources,javadoc" />
1683
+ <arg value =" -Dgpg.useagent=true" />
1684
+ </artifact : mvn >
1685
+
1686
+ <!-- sign and deploy the platform artifact -->
1687
+ <artifact : mvn failonerror =" true" >
1688
+ <arg value =" org.apache.maven.plugins:maven-gpg-plugin:${ version-maven-gpg-plugin } :sign-and-deploy-file" />
1689
+ <arg value =" -Durl=${ maven-staging-repository-url } " />
1690
+ <arg value =" -DrepositoryId=${ maven-staging-repository-id } " />
1691
+ <arg value =" -DpomFile=${ pom-platform-jpms } " />
1692
+ <arg value =" -Dfile=${ platform-jpms-jar } " />
1693
+ <arg value =" -Dfiles=${ platform-sources-jar } ,${ platform-javadoc-jar } " />
1694
+ <arg value =" -Dtypes=jar,jar" />
1695
+ <arg value =" -Dclassifiers=sources,javadoc" />
1696
+ <arg value =" -Dgpg.useagent=true" />
1697
+ </artifact : mvn >
1633
1698
</target >
1634
1699
1635
1700
<target name =" -bootstrap-maven" >
0 commit comments