diff --git a/README.md b/README.md index f592627..916e82b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ If you wish to use [SLF4J](http://slf4j.org) in your Bukkit plugin, or if your p info.ronjenkins slf4bukkit - 0.1.4 + 0.1.5 ``` diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..44b51f0 --- /dev/null +++ b/circle.yml @@ -0,0 +1,24 @@ +machine: + java: + version: oraclejdk8 + +dependencies: + pre: + - wget -nv https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz + - sudo tar -zxf apache-maven-3.3.9-bin.tar.gz -C /usr/local/ + - rm apache-maven-3.3.9-bin.tar.gz + - sudo ln -sfn /usr/local/apache-maven-3.3.9 /usr/local/apache-maven + override: + - mvn -V -DskipTests clean install dependency:resolve-plugins dependency:go-offline + post: + - bash ./env.sh + +test: + override: + - exit # We don't have any tests right now. + +deployment: + master: + branch: master + commands: + - bash ./deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..d1859fb --- /dev/null +++ b/deploy.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +mvn clean + +source .env +sed -i -e "s/GMSP_OAUTHTOKEN/${GMSP_OAUTHTOKEN}/" settings.xml + +mvn -s ./settings.xml -Drtr.release=true -P release + +git config --global user.email "me@ronjenkins.info" +git config --global user.name "Ronald Jack Jenkins Jr." + +POM_VERSION=$(cat .version | xargs) + +git add pom.xml README.md +git commit -m "Committing release $POM_VERSION" + +git tag "$POM_VERSION" +git push origin "$POM_VERSION" diff --git a/env.sh b/env.sh new file mode 100644 index 0000000..228337a --- /dev/null +++ b/env.sh @@ -0,0 +1,2 @@ +#!/bin/bash +env | grep GMSP_OAUTHTOKEN >> .env diff --git a/pom.xml b/pom.xml index 04f4734..f27acd1 100644 --- a/pom.xml +++ b/pom.xml @@ -6,12 +6,12 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . --> @@ -20,7 +20,7 @@ 4.0.0 info.ronjenkins slf4bukkit - 0.1.5-SNAPSHOT + 0.1.6-SNAPSHOT SLF4Bukkit ${project.name} is an SLF4J binding that uses Bukkit's plugin logging system. http://rjenkinsjr.github.io/slf4bukkit @@ -29,7 +29,6 @@ 1.7 1.7 2.10.3 - ${maven.compiler.source} true ${project.basedir}/src/site ${project.basedir}/target/site-src @@ -51,6 +50,12 @@ + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + org.slf4j @@ -143,26 +148,6 @@ - - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.0.1 - - - sonarqube-analysis - verify - - sonar - - - - - - @@ -254,32 +239,9 @@ - - - sonarqube - - - sonar.host.url - - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - - - - release - - - rtr.release - true - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - maven-deploy-plugin 2.8.2 - internal.repo::default::file://${maven2.repo.dir} + internal.repo::default::file://${maven2.repo.dir} @@ -425,4 +380,4 @@ - \ No newline at end of file + diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..f5ad1c5 --- /dev/null +++ b/settings.xml @@ -0,0 +1,12 @@ + + + + + + github + GMSP_OAUTHTOKEN + + +