diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..6fb04a4 --- /dev/null +++ b/circle.yml @@ -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) diff --git a/pom.xml b/pom.xml index 04f4734..9aae376 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 . --> @@ -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,23 +239,6 @@ - - - sonarqube - - - sonar.host.url - - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - - - - release @@ -300,9 +268,7 @@ - - - + @@ -336,18 +302,13 @@ - - - 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 +386,4 @@ - \ No newline at end of file + diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..90730cc --- /dev/null +++ b/settings.xml @@ -0,0 +1,12 @@ + + + + + + github + ${env.GMSP_OAUTHTOKEN} + + +