Permalink
Browse files

Push to Maven Central

  • Loading branch information...
gquerret committed May 1, 2018
1 parent 260e0a7 commit b9fd03000758454b8b1a158e4ff554fbdc1a9ce9
Showing with 103 additions and 10 deletions.
  1. +2 −0 .gitignore
  2. +1 −1 Jenkinsfile
  3. +24 −9 build.xml
  4. BIN lib/maven-ant-tasks-2.1.3.jar
  5. +42 −0 mvn.xml
  6. +34 −0 pom.xml
@@ -2,8 +2,10 @@
/.sonarlint/
/build/
/dist/
/doc/
/testbox/
/test-output/
/classDocTemp/
/profiler/
pom.xml.asc
src/java/com/phenix/pct/PCT.properties
@@ -28,7 +28,7 @@ stage('Standard build') {
unstash name: 'classdoc'
sh "${antHome}/bin/ant -DDLC10=${dlc10} -DDLC10-64=${dlc10_64} -DDLC11=${dlc11} -DGIT_COMMIT=${commit} dist"
stash name: 'tests', includes: 'dist/testcases.zip,tests.xml'
archive 'dist/PCT.jar'
archive 'dist/PCT.jar,dist/PCT-javadoc.jar,dist/PCT-sources.jar'
}
}
@@ -28,6 +28,7 @@
<property name="build-v10-64" location="build/build-v10-64" />
<property name="build-v11" location="build/build-v11" />
<property name="build-win" location="build/windows" />
<property name="doc" location="doc" />
<property name="dist" location="dist" />
<!-- Properties that control Java build options -->
@@ -105,6 +106,7 @@
<mkdir dir="${build-v10}" />
<mkdir dir="${build-v10-64}" />
<mkdir dir="${build-v11}" />
<mkdir dir="${doc}" />
<mkdir dir="${dist}" />
<!-- Checking v10 and v11 availability -->
@@ -342,15 +344,28 @@
</copy>
</target>
<target name="javadoc" depends="build" description="Javadoc generation">
<javadoc destdir="${doc}" useexternalfile="yes" charset="utf-8" encoding="utf-8">
<packageset dir="${src.java}" />
<classpath refid="pct.compil" />
<group title="PCT Core" packages="com.phenix.pct.*" />
<group title="Class documentation" packages="eu.rssw.pct.*" />
<group title="ABLDuck" packages="za.co.mip.ablduck.*" />
<group title="ProUnit" packages="net.cordova.prounit.*" />
<bottom>Copyright © 2003-${year} Gilles QUERRET. All Rights Reserved.</bottom>
<link href="https://docs.oracle.com/javase/8/docs/api/" />
<link href="https://ant.apache.org/manual/api/" />
</javadoc>
<jar destfile="${dist}/PCT-javadoc.jar">
<fileset dir="${doc}" />
</jar>
</target>
<target name="srcdist" description="Generates source zip/tarball archive">
<zip destfile="${dist}/pct-src-${env.BUILD_TAG}.zip">
<zipfileset prefix="pct" dir="." filemode="644">
<include name="src/**" />
<include name="build.xml" />
<include name="lib/*.jar" />
<include name="pct.build.properties" />
</zipfileset>
</zip>
<jar destfile="${dist}/PCT-sources.jar">
<fileset dir="src/java" />
<zipfileset dir="src/progress" prefix="progress" />
</jar>
</target>
<target name="testdist">
@@ -367,7 +382,7 @@
<copy file="${dist}/PCT.jar" todir="${ant.library.dir}"/>
</target>
<target name="dist" depends="srcdist,jar,testdist" />
<target name="dist" depends="srcdist,javadoc,jar,testdist" />
<target name="clean" description="Nettoyage">
<delete dir="${build}" />
Binary file not shown.
42 mvn.xml
@@ -0,0 +1,42 @@
<project name="pct-mvn-central" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<!-- defined maven snapshots and staging repository id and url -->
<property name="ossrh-staging-repository-url" value="https://oss.sonatype.org/service/local/staging/deploy/maven2" />
<!-- there server id in the Maven settings.xml -->
<property name="ossrh-server-id" value="ossrh" />
<target name="stage" description="Deploy release version to Maven staging repository">
<artifact:mvn>
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${ossrh-staging-repository-url}" />
<arg value="-DrepositoryId=${ossrh-server-id}" />
<arg value="-DpomFile=pom.xml" />
<arg value="-Dfile=dist/PCT.jar" />
<arg value="-Pgpg" />
</artifact:mvn>
<!-- sign and deploy the sources artifact -->
<artifact:mvn>
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${ossrh-staging-repository-url}" />
<arg value="-DrepositoryId=${ossrh-server-id}" />
<arg value="-DpomFile=pom.xml" />
<arg value="-Dfile=dist/PCT-sources.jar" />
<arg value="-Dclassifier=sources" />
<arg value="-Pgpg" />
</artifact:mvn>
<!-- sign and deploy the javadoc artifact -->
<artifact:mvn>
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
<arg value="-Durl=${ossrh-staging-repository-url}" />
<arg value="-DrepositoryId=${ossrh-server-id}" />
<arg value="-DpomFile=pom.xml" />
<arg value="-Dfile=dist/PCT-javadoc.jar" />
<arg value="-Dclassifier=javadoc" />
<arg value="-Pgpg" />
</artifact:mvn>
</target>
</project>
34 pom.xml
@@ -0,0 +1,34 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>eu.rssw.pct</groupId>
<artifactId>pct</artifactId>
<version>209</version>
<packaging>jar</packaging>
<name>PCT</name>
<description>OpenEdge plugin for Ant</description>
<url>https://github.com/Riverside-Software/pct</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>gquerret</id>
<name>Gilles QUERRET</name>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/Riverside-Software/pct.git</connection>
<url>https://github.com/Riverside-Software/pct</url>
</scm>
<dependencies>
</dependencies>
</project>

0 comments on commit b9fd030

Please sign in to comment.