From 485790336e8e0ece6ed892865002694f3418c462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Aub=C3=A9?= Date: Mon, 23 Mar 2020 18:55:39 -0400 Subject: [PATCH] infra(maven): release to sonatype --- .travis.yml | 6 +++ README.md | 14 +------ pom.xml | 114 +++++++++++++++++++++++++++++++++++++++------------- 3 files changed, 93 insertions(+), 41 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6a2ce34..bd445bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,9 @@ language: java notifications: email: false + +before_script: + - mvn clean package -DskipTests + +script: + - mvn test diff --git a/README.md b/README.md index 3f83217..d511210 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.org/Nexapp/NexappCore.svg?branch=master)](https://travis-ci.org/Nexapp/NexappCore) +[![Maven Central](https://img.shields.io/maven-central/v/ca.nexapp/core)](https://search.maven.org/search?q=ca.nexapp) # Nexapp Core Several Java mini-modules for REST APIs. @@ -132,19 +133,6 @@ ServiceLocator.reset(); // Clear all registrations ``` ## How to use it -At the moment, this project is hosted on GitHub and not on Maven Central. - -In your `pom.xml`, you must add the GitHub repository as follows: -``` - - - nexapp-core-mvn-repo - https://raw.github.com/nexapp/nexappcore/mvn-repo/ - - -``` - -Then, you simply add the dependency as follows: ``` ca.nexapp diff --git a/pom.xml b/pom.xml index 2889c58..10a4081 100644 --- a/pom.xml +++ b/pom.xml @@ -9,11 +9,34 @@ jar Nexapp Core + Several Java classes for REST APIs. + https://github.com/Nexapp/NexappCore + + + Apache License 2.0 + https://github.com/Nexapp/NexappCore/blob/master/LICENSE + repo + + + + + nexapp + Nexapp + https://nexapp.ca + + developer + + + + + + https://github.com/Nexapp/NexappCore.git + + UTF-8 1.8 - github @@ -29,47 +52,82 @@ - maven-deploy-plugin - 2.8.1 - - internal.repo::default::file://${project.build.directory}/mvn-repo - + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + - com.github.github - site-maven-plugin - 0.12 - - Maven artifacts for ${project.version} - true - ${project.build.directory}/mvn-repo - refs/heads/mvn-repo - - **/* - - true - NexappCore - Nexapp - + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 - + prepare-package - site + jar - deploy + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + org.apache.maven.plugins + maven-release-plugin + 2.5.3 + + true + false + release + deploy + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + - internal.repo - Temporary Staging Repository - file://${project.build.directory}/mvn-repo + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ @@ -127,4 +185,4 @@ 1.11 - \ No newline at end of file +