pom.xml 8.09 KB
Newer Older
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4

5
  <groupId>org.bitcoinj</groupId>
6
  <artifactId>bitcoinj-parent</artifactId>
Andreas Schildbach's avatar
Andreas Schildbach committed
7
  <version>0.14.7</version>
8 9
  <packaging>pom</packaging>

10 11 12
  <modules>
    <module>core</module>
    <module>examples</module>
13
    <module>tools</module>
14
    <module>wallettemplate</module>
15
  </modules>
16

17 18 19 20 21 22 23
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <scm>
24 25 26
    <connection>scm:git:https://github.com/bitcoinj/bitcoinj</connection>
    <developerConnection>scm:git:https://github.com/bitcoinj/bitcoinj</developerConnection>
    <url>scm:git:https://github.com/bitcoinj/bitcoinj</url>
27 28
  </scm>

Mike Hearn's avatar
Mike Hearn committed
29
  <name>bitcoinj Parent</name>
30
  <description>Provides the common configuration for the BitCoinJ modules</description>
31
  <url>http://www.bitcoinj.org/</url>
32 33 34 35 36 37 38 39 40

  <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>
41

42
  <issueManagement>
43 44
    <system>GitHub</system>
    <url>https://github.com/bitcoinj/bitcoinj/issues</url>
45
  </issueManagement>
46

47 48
  <mailingLists>
    <mailingList>
49
      <name>bitcoinj Google Group</name>
50 51 52
      <post>https://groups.google.com/forum/#!forum/bitcoinj</post>
    </mailingList>
  </mailingLists>
53

54 55 56 57 58 59 60 61 62 63 64
  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

65 66
  <!-- Common build plugin configuration -->
  <build>
67 68 69 70 71
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
72 73
          <source>1.8</source>
          <target>1.8</target>
74 75 76 77
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
        </configuration>
      </plugin>
78

79 80 81 82 83 84 85 86 87
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <addMavenDescriptor>false</addMavenDescriptor>
          </archive>
        </configuration>
      </plugin>

88 89 90 91 92 93 94
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <notimestamp>true</notimestamp>
        </configuration>
      </plugin>

95 96 97
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
98
        <version>1.6.5</version>
99 100 101 102
        <extensions>true</extensions>
        <configuration>
            <serverId>ossrh</serverId>
            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
103
            <autoReleaseAfterClose>false</autoReleaseAfterClose>
104 105
        </configuration>
      </plugin>
106
    </plugins>
107 108 109 110
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
111
          <version>2.6.1</version>
112
        </plugin>
113 114
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
115
          <version>3.2</version>
116
        </plugin>
117 118
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
119
          <version>2.10</version>
120
        </plugin>
121 122
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
123
          <version>2.8.2</version>
124
        </plugin>
125 126
        <plugin>
          <artifactId>maven-enforcer-plugin</artifactId>
127
          <version>1.4</version>
128
        </plugin>
129 130
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
131
          <version>2.5.2</version>
132
        </plugin>
133 134
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
135
          <version>2.6</version>
136
        </plugin>
137 138
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
139
          <version>2.10.2</version>
140
        </plugin>
141 142
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
143
          <version>2.7</version>
144
        </plugin>
145 146 147 148
        <plugin>
          <artifactId>maven-shade-plugin</artifactId>
          <version>2.3</version>
        </plugin>
149 150
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
151
          <version>3.4</version>
152
        </plugin>
153 154
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
155
          <version>2.4</version>
156
        </plugin>
157
        <plugin>
158 159
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>cobertura-maven-plugin</artifactId>
160
          <version>2.7</version>
161
        </plugin>
Mike Hearn's avatar
Mike Hearn committed
162 163
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
164
          <version>2.19.1</version>
Mike Hearn's avatar
Mike Hearn committed
165
        </plugin>
166 167
      </plugins>
    </pluginManagement>
168 169
  </build>

170
  <dependencies>
171 172 173
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
174
        <version>1.7.20</version>
175
      </dependency>
176
      <!-- bitcoinj consumers are expected to provide their own SLF4J adapters
177 178 179 180 181
    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>
182
        <version>1.7.20</version>
183 184 185
        <scope>runtime</scope>
        <optional>true</optional>
      </dependency>
186
  </dependencies>
187

Mike Hearn's avatar
Mike Hearn committed
188
  <prerequisites>
189
      <maven>3.0.4</maven>
Mike Hearn's avatar
Mike Hearn committed
190 191
  </prerequisites>

192 193 194 195
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <generated.sourceDirectory>gen</generated.sourceDirectory>
  </properties>
196 197 198 199 200

  <profiles>
    <profile>
      <id>doclint-java8-disable</id>
      <activation>
201
        <jdk>[1.8,)</jdk>
202 203 204 205 206 207 208 209 210 211 212 213 214
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <additionalparam>-Xdoclint:none</additionalparam>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
Mike Hearn's avatar
Mike Hearn committed
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263

      <profile>
          <id>release</id>
          <build>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-source-plugin</artifactId>
                      <executions>
                          <execution>
                              <id>attach-sources</id>
                              <phase>verify</phase>
                              <goals>
                                  <goal>jar-no-fork</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>

                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-javadoc-plugin</artifactId>
                      <executions>
                          <execution>
                              <id>attach-javadocs</id>
                              <goals>
                                  <goal>jar</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>

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

266
</project>