From 0cca6edc42064932fd8cafd4c3c0e3c3fc681426 Mon Sep 17 00:00:00 2001 From: Ondra Chaloupka Date: Thu, 29 Apr 2021 14:13:07 +0200 Subject: [PATCH] Adding data for releasing artifacts to nexus --- README.adoc | 40 ++++++++++++++++++++++++++++++++++++++++ README.md | 1 - pom.xml | 14 ++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 README.adoc delete mode 100644 README.md diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..282720f --- /dev/null +++ b/README.adoc @@ -0,0 +1,40 @@ += Narayana Checkstyle Configuration + +This repository contains the checkstyle rules used by some narayana projects. + +== How to build + +Compile with Maven. + +[source,bash] +---- +mvn clean install +---- + +== How to release + +Release is performed to https://repository.jboss.org/nexus/[JBoss Nexus]. + +Credentials for release needs to be setup in the `~/.m2/settings.xml` (or settings defined with `-s` parameter) +where you link the repository id `jboss-releases-repository` with the username/password. + +```xml + + jboss-releases-repository + [username] + [password for jboss nexus connection] + +``` + +As the next step run the `mvn release` and proceed standard +http://maven.apache.org/maven-release/maven-release-plugin/usage.html[steps for maven release plugin]. + +* `git checkout master; git fetch upstream master; git rebase upstream/master; git push upstream master` +* `mvn javadoc:javadoc` - verification that there won't be any javadoc errors during `release:perform` + +* `mvn release:clean` +* `mvn release:prepare` +* `mvn release:perform` + +Dry run: `mvn release:prepare -DdryRun=true` + diff --git a/README.md b/README.md deleted file mode 100644 index 937ab53..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -This repository contains the checkstyle rules used by some narayana projects. diff --git a/pom.xml b/pom.xml index 5113edc..6b1e8cd 100644 --- a/pom.xml +++ b/pom.xml @@ -21,4 +21,18 @@ http://www.gnu.org/licenses/lgpl-2.1.html + + + + jboss-releases-repository + JBoss Release Repository + https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/ + + + + scm:git:https://github.com/jbosstm/narayana-checkstyle-config.git + https://github.com/jbosstm/narayana-checkstyle-config + scm:git:https://github.com/jbosstm/narayana-checkstyle-config.git + HEAD +