Merge branch 'master' of https://github.com/rjenkinsjr/slf4bukkit
This commit is contained in:
@@ -31,7 +31,7 @@ If you wish to use [SLF4J](http://slf4j.org) in your Bukkit plugin, or if your p
|
||||
<dependency>
|
||||
<groupId>info.ronjenkins</groupId>
|
||||
<artifactId>slf4bukkit</artifactId>
|
||||
<version>0.1.4</version>
|
||||
<version>0.1.5</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
|
||||
24
circle.yml
Normal file
24
circle.yml
Normal file
@@ -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
|
||||
20
deploy.sh
Normal file
20
deploy.sh
Normal file
@@ -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"
|
||||
61
pom.xml
61
pom.xml
@@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>info.ronjenkins</groupId>
|
||||
<artifactId>slf4bukkit</artifactId>
|
||||
<version>0.1.5-SNAPSHOT</version>
|
||||
<version>0.1.6-SNAPSHOT</version>
|
||||
<name>SLF4Bukkit</name>
|
||||
<description>${project.name} is an SLF4J binding that uses Bukkit's plugin logging system.</description>
|
||||
<url>http://rjenkinsjr.github.io/slf4bukkit</url>
|
||||
@@ -29,7 +29,6 @@
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
<maven.javadoc.version>2.10.3</maven.javadoc.version>
|
||||
<sonar.java.source>${maven.compiler.source}</sonar.java.source>
|
||||
<rtr.allowExternalSnapshots>true</rtr.allowExternalSnapshots>
|
||||
<site.src>${project.basedir}/src/site</site.src>
|
||||
<site.dest>${project.basedir}/target/site-src</site.dest>
|
||||
@@ -51,6 +50,12 @@
|
||||
</license>
|
||||
</licenses>
|
||||
<!-- Dependencies -->
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
@@ -143,26 +148,6 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<!-- Plugins used by profiles. -->
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<!-- SonarQube analysis. -->
|
||||
<plugin>
|
||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
||||
<artifactId>sonar-maven-plugin</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sonarqube-analysis</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sonar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
<!-- Manages site/report configuration. -->
|
||||
<reporting>
|
||||
@@ -254,32 +239,9 @@
|
||||
</plugins>
|
||||
</reporting>
|
||||
<profiles>
|
||||
<!-- SonarQube analysis profile. -->
|
||||
<profile>
|
||||
<id>sonarqube</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>sonar.host.url</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
||||
<artifactId>sonar-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<!-- Things to do only for releases. -->
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>rtr.release</name>
|
||||
<value>true</value>
|
||||
</property>
|
||||
</activation>
|
||||
<!-- TODO: uncomment once we reach 1.0.0 -->
|
||||
<!--properties>
|
||||
<site.profile>production</site.profile>
|
||||
@@ -300,9 +262,7 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<propertyfile file="${project.basedir}/version.properties">
|
||||
<entry key="RELEASE_POM_VERSION" value="${project.version}" />
|
||||
</propertyfile>
|
||||
<echo message="${project.version}" file="${project.basedir}/.version" />
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
@@ -336,11 +296,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- SonarQube analysis. -->
|
||||
<plugin>
|
||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
||||
<artifactId>sonar-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- Deploy the Maven artifacts to a local directory for publishing to GitHub. -->
|
||||
<plugin>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
|
||||
12
settings.xml
Normal file
12
settings.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>
|
||||
<!-- GitHub site deployment. -->
|
||||
<server>
|
||||
<id>github</id>
|
||||
<password>GMSP_OAUTHTOKEN</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
||||
Reference in New Issue
Block a user