Skip to content

Commit

Permalink
only build javadocs/sources and sign jars using release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Jun 6, 2018
1 parent 4eca827 commit 1629080
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- stage: Deploy
if: branch = develop
jdk: oraclejdk8
before_script:
- openssl aes-256-cbc -K $GPG_PASSPHRASE -iv $GPG_PASSPHRASE -in .travis/gpg.enc -out .travis/gpg.asc -d
- gpg2 --fast-import .travis/gpg.asc
script: mvn deploy -B --settings=.travis/settings.xml -DskipTests=true
on:
branch: develop
Binary file added .travis/gpg.enc
Binary file not shown.
5 changes: 5 additions & 0 deletions .travis/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@

</profiles>

<activeProfiles>
<activeProfile>ossrh</activeProfile>
<activeProfile>release</activeProfile>
</activeProfiles>

<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

[![Build Status](https://travis-ci.org/SingingBush/SDL.svg?branch=master)](https://travis-ci.org/SingingBush/SDL)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.singingbush/sdlang/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.singingbush/sdlang)
[![Javadocs](https://www.javadoc.io/badge/com.singingbush/sdlang.svg)](https://www.javadoc.io/doc/com.singingbush/sdlang)
[![Coverage Status](https://coveralls.io/repos/github/SingingBush/SDL/badge.svg?branch=master)](https://coveralls.io/github/SingingBush/SDL?branch=master)

> SDLang is a simple and concise way to textually represent data. It has an XML-like structure – tags, values and attributes – which makes it a versatile choice for data serialization, configuration files, or declarative languages. Its syntax was inspired by the C family of languages (C/C++, C#, D, Java, …).
Expand Down
57 changes: 28 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,35 +88,6 @@

<build>
<plugins>

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

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

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -152,6 +123,34 @@
</activation>
<build>
<plugins>
<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>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.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-gpg-plugin</artifactId>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/singingbush/sdl/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class Parser {

/**
* Create an SDL parser
* @param reader A Reader for the SDL that should be parsed
*/
public Parser(@NotNull Reader reader) {
this.reader = (reader instanceof BufferedReader)
Expand All @@ -70,6 +71,7 @@ public Parser(@NotNull final String sdlText) {
/**
* Convenience for users wanting to parse SDL from a java.io.File
* @param file A UTF-8 encoded .sdl file
* @throws FileNotFoundException If file cannot be found
* @since 1.4.0
*/
public Parser(@NotNull final File file) throws FileNotFoundException {
Expand Down

0 comments on commit 1629080

Please sign in to comment.