Merge pull request #4 from rjenkinsjr/move-to-circle
Move from private Jenkins CI server to CircleCI
This commit is contained in:
25
circle.yml
Normal file
25
circle.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
test:
|
||||||
|
override:
|
||||||
|
- exit # We don't have any tests right now.
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
master:
|
||||||
|
branch: master
|
||||||
|
commands:
|
||||||
|
- mvn clean
|
||||||
|
- mvn -s settings.xml -Drtr.release=true
|
||||||
|
- git tag $(cat .version)
|
||||||
|
- git push origin $(cat .version)
|
||||||
61
pom.xml
61
pom.xml
@@ -6,12 +6,12 @@
|
|||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses />.
|
along with this program. If not, see <http://www.gnu.org/licenses />.
|
||||||
-->
|
-->
|
||||||
@@ -29,7 +29,6 @@
|
|||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
<maven.javadoc.version>2.10.3</maven.javadoc.version>
|
<maven.javadoc.version>2.10.3</maven.javadoc.version>
|
||||||
<sonar.java.source>${maven.compiler.source}</sonar.java.source>
|
|
||||||
<rtr.allowExternalSnapshots>true</rtr.allowExternalSnapshots>
|
<rtr.allowExternalSnapshots>true</rtr.allowExternalSnapshots>
|
||||||
<site.src>${project.basedir}/src/site</site.src>
|
<site.src>${project.basedir}/src/site</site.src>
|
||||||
<site.dest>${project.basedir}/target/site-src</site.dest>
|
<site.dest>${project.basedir}/target/site-src</site.dest>
|
||||||
@@ -51,6 +50,12 @@
|
|||||||
</license>
|
</license>
|
||||||
</licenses>
|
</licenses>
|
||||||
<!-- Dependencies -->
|
<!-- Dependencies -->
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>spigot-repo</id>
|
||||||
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
@@ -143,26 +148,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</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>
|
</build>
|
||||||
<!-- Manages site/report configuration. -->
|
<!-- Manages site/report configuration. -->
|
||||||
<reporting>
|
<reporting>
|
||||||
@@ -254,23 +239,6 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</reporting>
|
</reporting>
|
||||||
<profiles>
|
<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. -->
|
<!-- Things to do only for releases. -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>release</id>
|
<id>release</id>
|
||||||
@@ -300,9 +268,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<target>
|
||||||
<propertyfile file="${project.basedir}/version.properties">
|
<echo message="${project.version}" file="${project.basedir}/.version" />
|
||||||
<entry key="RELEASE_POM_VERSION" value="${project.version}" />
|
|
||||||
</propertyfile>
|
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
@@ -336,18 +302,13 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</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. -->
|
<!-- Deploy the Maven artifacts to a local directory for publishing to GitHub. -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
<version>2.8.2</version>
|
<version>2.8.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<altDeploymentRepository>
|
<altDeploymentRepository>
|
||||||
internal.repo::default::file://${maven2.repo.dir}
|
internal.repo::default::file://${maven2.repo.dir}
|
||||||
</altDeploymentRepository>
|
</altDeploymentRepository>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -425,4 +386,4 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
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>${env.GMSP_OAUTHTOKEN}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
||||||
Reference in New Issue
Block a user