Skip to content

Commit

Permalink
Succumb to Maven conventions... for central upload
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Jan 17, 2018
1 parent df34d1c commit ac734c5
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 772 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ hs_err_pid*
/lib/
/.idea
/*.iml
/target
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<target name="jcpro">
<tempfile property="jcpro.tmp" destdir="${java.io.tmpdir}" prefix="jcpro" deleteonexit="true"/>
<mkdir dir="${jcpro.tmp}"/>
<javac srcdir="src/pro/javacard/ant" destdir="${jcpro.tmp}" includeantruntime="true" target="1.7" source="1.7">
<javac srcdir="src/main/java/pro/javacard/ant" destdir="${jcpro.tmp}" includeantruntime="true" target="1.8" source="1.8">
<compilerarg value="-Xlint:all"/>
</javac>
<!-- Load the fresh task -->
Expand Down
106 changes: 106 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.martinpaljak</groupId>
<artifactId>ant-javacard</artifactId>
<version>18.01.17</version>
<packaging>jar</packaging>
<description>Easy to use Ant task for building JavaCard applets</description>
<name>ant-javacard</name>
<url>https://github.com/martinpaljak/ant-javacard</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
</properties>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.8.2</version>
<scope>compile</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>sign</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>io.github.zlika</groupId>
<artifactId>reproducible-build-maven-plugin</artifactId>
<version>0.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>strip-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<licenses>
<license>
<name>MIT</name>
<url>https://github.com/martinpaljak/ant-javacard/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/martinpaljak/ant-javacard</url>
</scm>
<developers>
<developer>
<id>martinpaljak</id>
<name>Martin Paljak</name>
<email>[email protected]</email>
<url>https://github.com/martinpaljak</url>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
</project>
Loading

0 comments on commit ac734c5

Please sign in to comment.