Skip to content

Commit

Permalink
Update Java binding build (#114)
Browse files Browse the repository at this point in the history
Fix errors and warnings from maven publish, i.e.

```
Repository "orghyperledger-1045" failures
  Rule "sources-staging" failures
   * Missing: no sources jar found in folder '/org/hyperledger/fabric/fabric-protos/0.1.2'
  Rule "javadoc-staging" failures
   * Missing: no javadoc jar found in folder '/org/hyperledger/fabric/fabric-protos/0.1.2'
```

and

```
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-gpg-plugin is missing.
```

Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
jt-nti authored Jun 22, 2022
1 parent 48afc6f commit 60af1c7
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions bindings/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@
</dependencies>

<profiles>
<profile>
<id>javadoc-no-module-directories</id>
<activation>
<jdk>[11,13)</jdk>
</activation>
<properties>
<additionalJavadocOpts>--no-module-directories</additionalJavadocOpts>
</properties>
</profile>
<profile>
<id>github</id>
<distributionManagement>
Expand All @@ -121,6 +130,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down Expand Up @@ -210,6 +220,46 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<show>public</show>
<doctitle>PROTO library for fabric-protos</doctitle>
<nohelp>true</nohelp>
<failOnError>true</failOnError>
<links>
<link>https://docs.oracle.com/javase/8/docs/api/</link>
</links>
<source>${javaVersion}</source>
<detectJavaApiLink>false</detectJavaApiLink>
<additionalJOptions>
<additionalJOption>${additionalJavadocOpts}</additionalJOption>
</additionalJOptions>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 60af1c7

Please sign in to comment.