Skip to content

Commit

Permalink
pom changes to produce appropriate releases for Maven Central
Browse files Browse the repository at this point in the history
Added release notes
  • Loading branch information
dan2097 committed Dec 13, 2021
1 parent f5431f2 commit 6fb6cef
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# JNA-InChI
Wrapper to access InChI from Java. This is a work in progress to wrap the latest version of [InChI](https://www.inchi-trust.org/) (1.06) using [JNA](https://github.com/java-native-access/jna). A simple native Java interface can then be used to call InChI.
Wrapper to access InChI from Java. This wraps the latest version of [InChI](https://www.inchi-trust.org/) (1.06) using [JNA](https://github.com/java-native-access/jna). A simple native Java interface can then be used to call InChI.
Java 8 or higher is required.

## Examples
Expand Down Expand Up @@ -45,7 +45,7 @@ The simplest way to use the library is with:
<dependency>
<groupId>io.github.dan2097</groupId>
<artifactId>jna-inchi-all</artifactId>
<version>x.y</version>
<version>1.0</version>
</dependency>
```
which includes binaries for most common platforms and support for converting SMILES to InChI/InChIKey.
Expand Down
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# JNA-InChI Release Notes

## v1.0 (2021-12-13)
* Initial release with support for InChI 1.06 on Linux (x86/x86-64/ARM), Mac (ARM64/x86-64) and Windows (x86/x86-64)
83 changes: 77 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
scm:git:https://github.com/dan2097/jna-inchi
</developerConnection>
</scm>
<distributionManagement><!--For deployment to Maven Central via OSSRH -->
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand All @@ -47,8 +57,8 @@
</developers>
<build>
<plugins>
<!-- Java 8 -->
<plugin>
<!--Compile for Java 8+ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
Expand All @@ -57,14 +67,11 @@
<target>1.8</target>
</configuration>
</plugin>
<!-- See JDK-8212233 -->
<plugin>
<!-- Newer versions of this plugin resolve JDK-8212233 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<source>8</source>
</configuration>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -90,7 +97,71 @@
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<arguments>${arguments} -Psonatype-oss-release</arguments>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<!--Additional plugins to run when performing a release for Maven Central-->
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</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-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencyManagement>
<dependencies>
<dependency>
Expand Down

0 comments on commit 6fb6cef

Please sign in to comment.