commit
2716c90e79
8 changed files with 107 additions and 11 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule ".travis-support"]
|
|
||||||
path = .travis-support
|
|
||||||
url = https://github.com/kemitix/kemitix-travis-support.git
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 5fdf0501a920e2678a8d920df986d250fc0173f4
|
|
|
@ -5,9 +5,4 @@ cache:
|
||||||
directories:
|
directories:
|
||||||
- "$HOME/.m2"
|
- "$HOME/.m2"
|
||||||
install: true
|
install: true
|
||||||
script: "./mvnw clean install"
|
script: "./mvnw -U -B clean install"
|
||||||
deploy:
|
|
||||||
provider: script
|
|
||||||
script: sh .travis-support/deploy.sh
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
|
|
12
CHANGELOG
12
CHANGELOG
|
@ -1,6 +1,18 @@
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
5.0.3
|
||||||
|
-----
|
||||||
|
|
||||||
|
* Add javadoc, source and nexus-staging plugins
|
||||||
|
* Add Jenkinsfile
|
||||||
|
* Remove travis-support for deployment
|
||||||
|
|
||||||
|
5.0.2
|
||||||
|
-----
|
||||||
|
|
||||||
|
* Add pom name and description
|
||||||
|
|
||||||
5.0.1
|
5.0.1
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
28
Jenkinsfile
vendored
Normal file
28
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
final String gitRepoUrl = 'git@github.com:kemitix/kemitix-parent.git'
|
||||||
|
final String mvn = "mvn --batch-mode --update-snapshots"
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
|
stage('Prepare') {
|
||||||
|
steps {
|
||||||
|
git url: gitRepoUrl, branch: '**', credentialsId: 'github-kemitix'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
||||||
|
sh "${mvn} clean install"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
when { expression { (env.GIT_BRANCH == 'master') } }
|
||||||
|
steps {
|
||||||
|
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
||||||
|
sh "${mvn} deploy --activate-profiles release"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
52
pom.xml
52
pom.xml
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<groupId>net.kemitix</groupId>
|
<groupId>net.kemitix</groupId>
|
||||||
<artifactId>kemitix-parent</artifactId>
|
<artifactId>kemitix-parent</artifactId>
|
||||||
<version>5.0.3</version>
|
<version>5.1.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<name>Kemitix Parent</name>
|
<name>Kemitix Parent</name>
|
||||||
|
@ -36,7 +36,10 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
|
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
|
||||||
|
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
|
||||||
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
|
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
|
||||||
|
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
@ -53,12 +56,47 @@
|
||||||
<id>release</id>
|
<id>release</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>${maven-javadoc-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-javadocs</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin><!-- maven-javadoc-plugin -->
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<version>${maven-source-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-sources</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar-no-fork</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin><!-- maven-source-plugin -->
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
<version>${maven-gpg-plugin.version}</version>
|
<version>${maven-gpg-plugin.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<passphrase>${gpg.passphrase}</passphrase>
|
<passphrase>${gpg.passphrase}</passphrase>
|
||||||
|
<gpgArguments>
|
||||||
|
<arg>--batch</arg>
|
||||||
|
<arg>--pinentry-mode</arg>
|
||||||
|
<arg>loopback</arg>
|
||||||
|
</gpgArguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
@ -70,6 +108,18 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin><!-- maven-gpg-plugin -->
|
</plugin><!-- maven-gpg-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>sonatype-nexus</serverId>
|
||||||
|
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
||||||
|
<skipStaging>false</skipStaging>
|
||||||
|
</configuration>
|
||||||
|
</plugin><!-- nexus-staging-maven-plugin -->
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
15
set-version.sh
Normal file
15
set-version.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if test $# != 1
|
||||||
|
then
|
||||||
|
echo "next version missing"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
CURRENT=`grep '<version>' pom.xml |head -n 1| sed 's/.*>\(.*\)<.*/\1/'`
|
||||||
|
NEXT=$1
|
||||||
|
|
||||||
|
echo Updating version from $CURRENT to $NEXT
|
||||||
|
|
||||||
|
./mvnw versions:set -DnewVersion=$NEXT
|
||||||
|
perl -p -i -e "s,$CURRENT</,$NEXT</," README.md
|
Loading…
Reference in a new issue