Skip to content

Commit

Permalink
Prepare the build configuration for a release [ECR-1526] (#298):
Browse files Browse the repository at this point in the history
Add required plugins to prepare artefacts for a publication 
to the repository.
  • Loading branch information
MakarovS authored and dmitry-timofeev committed Jun 15, 2018
1 parent 7861e42 commit 7727875
Show file tree
Hide file tree
Showing 9 changed files with 172 additions and 31 deletions.
6 changes: 3 additions & 3 deletions exonum-java-binding-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>exonum-java-binding-parent</artifactId>
<groupId>com.exonum.binding</groupId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<artifactId>exonum-java-binding-bom</artifactId>
Expand All @@ -17,8 +17,8 @@
<name>Exonum Java Binding: Bill of Materials</name>

<properties>
<exonum-core.version>1.0-SNAPSHOT</exonum-core.version>
<exonum-java-proofs.version>1.0-SNAPSHOT</exonum-java-proofs.version>
<exonum-core.version>0.1.0</exonum-core.version>
<exonum-java-proofs.version>0.1.0</exonum-java-proofs.version>
<guice.version>4.2.0</guice.version>
<log4j.version>2.11.0</log4j.version>
<guava.version>25.1-jre</guava.version>
Expand Down
11 changes: 7 additions & 4 deletions exonum-java-binding-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
<parent>
<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-binding-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<artifactId>exonum-java-binding-core</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>jar</packaging>

<name>Exonum Java Binding: Core</name>
<description>
A library that contains the APIs to define and implement an Exonum service.
</description>

<properties>
<project.build.headersDirectory>${project.build.directory}/native-headers</project.build.headersDirectory>
Expand Down Expand Up @@ -236,7 +239,7 @@
<dependency>
<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-proofs</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -315,7 +318,7 @@
<dependency>
<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-testing</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<scope>test</scope>
</dependency>

Expand Down
14 changes: 11 additions & 3 deletions exonum-java-binding-cryptocurrency-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<parent>
<artifactId>exonum-java-binding-parent</artifactId>
<groupId>com.exonum.binding</groupId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>

<artifactId>exonum-java-binding-cryptocurrency-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<name>Exonum Java Binding: Cryptocurrency Java service</name>
<description>A simple cryptocurrency Exonum Java service.</description>

Expand All @@ -22,7 +22,7 @@
<gson.version>2.8.5</gson.version>
<protobuf.version>3.5.1</protobuf.version>
<exonum-bom.version>1.0.0</exonum-bom.version>
<exonum-java-testing.version>1.0-SNAPSHOT</exonum-java-testing.version>
<exonum-java-testing.version>0.1.0</exonum-java-testing.version>
</properties>

<build>
Expand Down Expand Up @@ -75,6 +75,14 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
14 changes: 11 additions & 3 deletions exonum-java-binding-fakes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>exonum-java-binding-parent</artifactId>
<groupId>com.exonum.binding</groupId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>exonum-java-binding-fakes</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>jar</packaging>

<name>Exonum Java Binding: Fakes</name>
Expand Down Expand Up @@ -66,14 +66,22 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-binding-core</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</dependency>

<dependency>
Expand Down
12 changes: 10 additions & 2 deletions exonum-java-binding-qa-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>exonum-java-binding-parent</artifactId>
<groupId>com.exonum.binding</groupId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>

<artifactId>exonum-java-binding-qa-service</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<name>Exonum Java Binding: QA Java service</name>
<description>A simple Exonum Java service for QA purposes.</description>

Expand Down Expand Up @@ -45,6 +45,14 @@
</argLine>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
6 changes: 4 additions & 2 deletions exonum-java-binding-service-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
<parent>
<artifactId>exonum-java-binding-parent</artifactId>
<groupId>com.exonum.binding</groupId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>exonum-java-binding-service-archetype</artifactId>
<packaging>maven-archetype</packaging>
<name>Exonum Service Maven Archetype: Quickstart</name>
<description>Archetype for creating Exonum Service application.</description>
<description>
Archetype for creating Exonum Service application.
</description>

<properties>
<maven-archetype.version>3.0.1</maven-archetype.version>
Expand Down
9 changes: 6 additions & 3 deletions exonum-java-proofs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
<parent>
<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-binding-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<artifactId>exonum-java-proofs</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>jar</packaging>

<name>Exonum Java Binding: Proofs</name>
<description>
A library that provides classes to represent and verify Exonum proofs.
</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -76,7 +79,7 @@
<dependency>
<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-testing</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
12 changes: 10 additions & 2 deletions exonum-java-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<parent>
<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-binding-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<name>Exonum Java Binding: Testing Utils</name>
<artifactId>exonum-java-testing</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>jar</packaging>

<build>
Expand All @@ -34,6 +34,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
119 changes: 110 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,50 @@

<groupId>com.exonum.binding</groupId>
<artifactId>exonum-java-binding-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>pom</packaging>

<name>Exonum Java Binding Parent</name>
<description>
The Exonum Java Binding library.
</description>
<url>https://github.com/exonum/exonum-java-binding</url>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<organization>
<name>Exonum</name>
<url>https://exonum.com/</url>
</organization>

<scm>
<connection>scm:git:https://github.com/exonum/exonum-java-binding.git</connection>
<developerConnection>scm:git:[email protected]:/exonum/exonum-java-binding.git</developerConnection>
<url>https://github.com/exonum/exonum-java-binding</url>
<tag>HEAD</tag>
</scm>

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

<issueManagement>
<system>github</system>
<url>https://github.com/exonum/exonum-java-binding/issues</url>
</issueManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down Expand Up @@ -126,14 +164,6 @@
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<doclint>none</doclint>
</configuration>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -166,6 +196,54 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<doclint>none</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>deploy</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>deploy</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -179,6 +257,29 @@
<checkstyle.severity>error</checkstyle.severity>
</properties>
</profile>

<!-- GPG Signature on deploy -->
<profile>
<id>deploy-sign-artifacts</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>

<dependencyManagement>
Expand Down

0 comments on commit 7727875

Please sign in to comment.