Merge pull request #106 from kemitix/release/5.1.0

Release/5.1.0
This commit is contained in:
Paul Campbell 2018-02-28 07:29:28 +00:00 committed by GitHub
commit 2716c90e79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 107 additions and 11 deletions

3
.gitmodules vendored
View file

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

View file

@ -5,9 +5,4 @@ cache:
directories:
- "$HOME/.m2"
install: true
script: "./mvnw clean install"
deploy:
provider: script
script: sh .travis-support/deploy.sh
on:
branch: master
script: "./mvnw -U -B clean install"

View file

@ -1,6 +1,18 @@
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
-----

28
Jenkinsfile vendored Normal file
View 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
View file

@ -5,7 +5,7 @@
<groupId>net.kemitix</groupId>
<artifactId>kemitix-parent</artifactId>
<version>5.0.3</version>
<version>5.1.0</version>
<packaging>pom</packaging>
<name>Kemitix Parent</name>
@ -36,7 +36,10 @@
<properties>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<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>
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
</properties>
<developers>
@ -53,12 +56,47 @@
<id>release</id>
<build>
<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>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
<gpgArguments>
<arg>--batch</arg>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
@ -70,6 +108,18 @@
</execution>
</executions>
</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>
</build>

15
set-version.sh Normal file
View 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