Skip to content

Commit

Permalink
Added Maven Central Repository Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
zengler committed Jul 14, 2017
1 parent 592680c commit 295ff7d
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 30 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ The most important philosophy of the library is to avoid unnecessary object crea

Compared to other implementation of logic libraries on the JVM this is a huge memory and performance improvement.

## Usage
LogicNG is released in the Maven Central Repository. To include it just add
```xml
<dependency>
<groupId>org.logicng</groupId>
<artifactId>logicng</artifactId>
<version>1.2</version>
</dependency>
```
to you Maven POM.

## Development Model
The `master` branch contains the latest release of LogicNG. If you want a *stable* and *well tested* version you should choose this branch. The `development` branch reflects the *current state* of the next version. This branch will always compile, but code might not be as well tested and APIs may still change before the next release. If you want to try *cutting edge* features, you can checkout this branch at your own risk. It is *not recommended* to use the development version for *production* systems. Larger features will be developed in their own branches and will be merged to the development branch when ready.

Expand Down
105 changes: 75 additions & 30 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,36 +144,6 @@
</executions>
</plugin>

<!-- Compile jar with sources -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

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

<!-- Coveralls.io test coverage -->
<plugin>
<groupId>org.eluder.coveralls</groupId>
Expand Down Expand Up @@ -224,4 +194,79 @@
</snapshots>
</pluginRepository>
</pluginRepositories>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Deploy to Maven Central -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>

<!-- Sign components -->
<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>

<!-- Compile jar with sources -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Compile jar with javadocs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</project>

0 comments on commit 295ff7d

Please sign in to comment.