Commit 5abe5f80 authored by Matija Obreza's avatar Matija Obreza

CI

parent 44ad36bf
Pipeline #807 passed with stage
in 24 seconds
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USER}</username>
<password>${env.OSSRH_PASS}</password>
</server>
</servers>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
stages:
- compile
- deploy
run tests in branches:
stage: compile
image: maven:3-jdk-8
script:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B
except:
- master
- tags
publish artifacts:
stage: deploy
image: maven:3-jdk-8
script:
- echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
- gpg --list-keys
- mvn clean deploy --settings .ci-maven-settings.xml -B -U
only:
- master
- tags
......@@ -34,8 +34,12 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.target>1.6</jdk.target>
<jdk.source>1.6</jdk.source>
<jdk.target>1.8</jdk.target>
<jdk.source>1.8</jdk.source>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
<show.deprecations>true</show.deprecations>
<scribe.version>1.3.7</scribe.version>
</properties>
......@@ -44,14 +48,16 @@
<build>
<plugins>
<plugin>
<inherited>true</inherited>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>3.6.1</version>
<configuration>
<source>${jdk.source}</source>
<target>${jdk.target}</target>
<optimize>true</optimize>
<!--<showDeprecation>${show.deprecations}</showDeprecation> -->
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<failOnWarning>true</failOnWarning>
</configuration>
</plugin>
<plugin>
......@@ -130,8 +136,8 @@
<version>4.3.6</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>release</id>
......@@ -169,7 +175,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
......@@ -184,15 +190,18 @@
</build>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>ossrh</id>
<name>Sonatype Releases</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<uniqueVersion>true</uniqueVersion>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>
\ No newline at end of file
</project>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment