bitcoinj/pom.xml

355 lines
11 KiB
XML
Raw Blame History

<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.google</groupId>
<artifactId>bitcoinj</artifactId>
<version>0.4-SNAPSHOT</version>
<name>BitCoinJ</name>
<description>A Java implementation of a Bitcoin client-only node</description>
<url>http://code.google.com/p/bitcoinj</url>
<ciManagement>
<url>http://ci.bitcoinj.org/</url>
</ciManagement>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<!-- Committers -->
<developers>
<!-- Information already public -->
<developer>
<name>Mike Hearn</name>
<email>hearn@google.com</email>
</developer>
<developer>
<name>Miron Cuperman</name>
<email>miron@google.com</email>
</developer>
<developer>
<name>Xiaofeng Guo</name>
<email>xiaofengguo@google.com</email>
</developer>
</developers>
<!-- Patchers and contributors -->
<contributors>
<!-- Information already public -->
<contributor>
<name>Thilo Planz</name>
<email>thilo@cpan.org</email>
</contributor>
<contributor>
<name>Micheal Swiggs</name>
<email>bobby.simpson87@gmail.com</email>
</contributor>
<contributor>
<name>Gary Rowe</name>
<email>g.rowe@froot.co.uk</email>
</contributor>
<contributor>
<name>Noa Resare</name>
<email>noa@resare.com</email>
</contributor>
<contributor>
<name>John Sample</name>
<email>jwsample@gmail.com</email>
</contributor>
<contributor>
<name>Jan M<>ller</name>
<email>jan.moller@gmail.com</email>
</contributor>
<contributor>
<name>Wolfgang Nagele</name>
<email>wolfgang.nagele@gmail.com</email>
</contributor>
<contributor>
<name>Jonny Heggheim</name>
<email>hegjon@gmail.com</email>
</contributor>
<contributor>
<name>Steve Coughlan</name>
<email>shadders.del@gmail.com</email>
</contributor>
</contributors>
<issueManagement>
<system>Google Code</system>
<url>http://code.google.com/p/bitcoinj/issues/list</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>BitCoinJ Google Group</name>
<post>https://groups.google.com/forum/#!forum/bitcoinj</post>
</mailingList>
</mailingLists>
<scm>
<url>http://bitcoinj.googlecode.com/svn/trunk/</url>
</scm>
<distributionManagement>
<repository>
<id>releases</id>
<url>http://nexus.bitcoinj.org/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://nexus.bitcoinj.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>bitcoinj-release</id>
<releases/>
<url>http://nexus.bitcoinj.org/content/repositories/releases</url>
</repository>
<repository>
<id>bitcoinj-snapshot</id>
<snapshots/>
<url>http://nexus.bitcoinj.org/content/repositories/snapshots</url>
</repository>
</repositories>
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>update-protobuf</id>
<activation>
<property>
<name>updateProtobuf</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-protoc</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<path id="proto.path">
<fileset dir="src">
<include name="**/*.proto" />
</fileset>
</path>
<pathconvert pathsep=" " property="proto.files" refid="proto.path" />
<exec executable="protoc" failonerror="true">
<arg value="--java_out=${project.basedir}/src" />
<arg value="-I${project.basedir}/src" />
<arg line="${proto.files}" />
</exec>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<!-- Non-standard Maven structure -->
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>tests</testSourceDirectory>
<testResources>
<testResource>
<directory>tests</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<!-- Version 1.5 required to support older platforms. -->
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<!-- Surefire plugin specified for Maven2 compatibility -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
</plugin>
<!-- The Shade plugin permits the Bouncy Castle libraries to be available for Android
in their full form, rather than the limited versions that are currently available
The standard bitcoinj library does not have this limitation and can use the referenced library
As a result, Android developers should use the bitcoinj-<version>-android.jar artifact -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<!-- Remove the original signature meta information from all sources -->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.bouncycastle</pattern>
<shadedPattern>com.google.bitcoin.bouncycastle</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<includes>
<include>org.bouncycastle</include>
</includes>
</artifactSet>
<minimizeJar>true</minimizeJar>
<!-- bitcoinj-<version>-android.jar contains the shaded Bouncy Castle libraries -->
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>android</shadedClassifierName>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>gen</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- BitCoinJ consumers are expected to provide their own SLF4J adapters
such as logback, slf4j-log4j12, slf4j-jcl and so on
see http://www.slf4j.org/faq.html -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>${slf4j.version}</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>${derby.version}</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!-- In Android these libraries are incomplete,
so use the dedicated artifact (bitcoinj-<version>-android.jar) -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
<version>${bcprov-jdk15.version}</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Third-party dependencies -->
<bcprov-jdk15.version>1.46</bcprov-jdk15.version>
<easymock.version>3.0</easymock.version>
<junit.version>4.8.2</junit.version>
<slf4j.version>1.6.2</slf4j.version>
<derby.version>10.8.2.2</derby.version>
<protobuf.version>2.4.1</protobuf.version>
<generated.sourceDirectory>gen</generated.sourceDirectory>
</properties>
</project>