Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Transifex Client
Commits
9e1b3512
Commit
9e1b3512
authored
Apr 23, 2017
by
Matija Obreza
Browse files
CI
parent
2e81c006
Pipeline
#804
passed with stage
in 28 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.ci-maven-settings.xml
0 → 100644
View file @
9e1b3512
<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>
.gitlab-ci.yml
0 → 100644
View file @
9e1b3512
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
pom.xml
View file @
9e1b3512
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 Global Crop Diversity Trust
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
...
@@ -46,15 +46,14 @@
<organizationUrl>
http://www.croptrust.org
</organizationUrl>
</developer>
</developers>
<prerequisites>
<maven>
3.1
</maven>
</prerequisites>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<jdk.target>
1.7
</jdk.target>
<jdk.source>
1.7
</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>
<spring.framework.version>
4.2.4.RELEASE
</spring.framework.version>
<log4j.version>
1.2.17
</log4j.version>
...
...
@@ -97,13 +96,14 @@
<plugin>
<inherited>
true
</inherited>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.
3
</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>
...
...
@@ -114,6 +114,17 @@
<pushChanges>
false
</pushChanges>
</configuration>
</plugin>
<plugin>
<groupId>
org.sonatype.plugins
</groupId>
<artifactId>
nexus-staging-maven-plugin
</artifactId>
<version>
${nexus-staging-maven-plugin.version}
</version>
<extensions>
true
</extensions>
<configuration>
<serverId>
ossrh
</serverId>
<nexusUrl>
https://oss.sonatype.org/
</nexusUrl>
<autoReleaseAfterClose>
true
</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
...
...
@@ -154,7 +165,7 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-gpg-plugin
</artifactId>
<version>
1.6
</version>
<version>
${maven-gpg-plugin.version}
</version>
<executions>
<execution>
<id>
sign-artifacts
</id>
...
...
@@ -171,13 +182,16 @@
</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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment