From 5cab4f0c8ce737be0af6e597975b13420cfb934e Mon Sep 17 00:00:00 2001 From: "Valeriy.Vyrva" Date: Sun, 1 Apr 2018 23:01:08 +0300 Subject: [PATCH] Deploy: Use Rultor for deploy to Maven Central --- .rultor.yml | 15 ++++ .rultor/.gitignore | 4 + .rultor/README.md | 47 +++++++++++ .rultor/deploy.sh | 86 ++++++++++++++++++++ .rultor/github-deploy.key.asc | 44 +++++++++++ .rultor/github-deploy.key.pub.asc | 23 ++++++ .rultor/pubring.gpg.asc | 42 ++++++++++ .rultor/secring.gpg.asc | 71 +++++++++++++++++ .rultor/settings-template.xml | 23 ++++++ .rultor/settings.xml.asc | 22 ++++++ CHANGELOG.md | 6 ++ README.md | 4 +- pom.xml | 126 ++++++++++++++++++++++++++++++ 13 files changed, 512 insertions(+), 1 deletion(-) create mode 100644 .rultor.yml create mode 100644 .rultor/.gitignore create mode 100644 .rultor/README.md create mode 100644 .rultor/deploy.sh create mode 100644 .rultor/github-deploy.key.asc create mode 100644 .rultor/github-deploy.key.pub.asc create mode 100644 .rultor/pubring.gpg.asc create mode 100644 .rultor/secring.gpg.asc create mode 100644 .rultor/settings-template.xml create mode 100644 .rultor/settings.xml.asc create mode 100644 CHANGELOG.md diff --git a/.rultor.yml b/.rultor.yml new file mode 100644 index 0000000..391279d --- /dev/null +++ b/.rultor.yml @@ -0,0 +1,15 @@ +docker: + image: yegor256/java8 +decrypt: + settings.xml: "repo/.rultor/settings.xml.asc" + pubring.gpg: "repo/.rultor/pubring.gpg.asc" + secring.gpg: "repo/.rultor/secring.gpg.asc" + id_rsa: "repo/.rultor/github-deploy.key.asc" + id_rsa.pub: "repo/.rultor/github-deploy.key.pub.asc" +install: |- + java -version +deploy: + script: | + bash .rultor/deploy.sh +merge: + script: mvn clean verify -P run-its diff --git a/.rultor/.gitignore b/.rultor/.gitignore new file mode 100644 index 0000000..49f6c1f --- /dev/null +++ b/.rultor/.gitignore @@ -0,0 +1,4 @@ +*.gpg +*.key +*.pub +settings.xml diff --git a/.rultor/README.md b/.rultor/README.md new file mode 100644 index 0000000..60c16b8 --- /dev/null +++ b/.rultor/README.md @@ -0,0 +1,47 @@ +# Prepare + +### Copy + +```bash +cp -v ~/.gnupg/pubring.gpg ./ +cp -v ~/.gnupg/secring.gpg ./ +cp -v settings-template.xml settings.xml +``` + +### Generate + +```bash +ssh-keygen -f github-deploy.key -N '' +``` +Upload to [project's deploy keys](https://github.com/valery1707/kaitai-maven-plugin/settings/keys) with name `Rultor` and write access. + +### Fill + +```bash +nano setting.xml +``` + +### Sign + +```bash +rultor-remote.sh -p valery1707/kaitai-maven-plugin pubring.gpg secring.gpg settings.xml github-deploy.key github-deploy.key.pub +``` + +### Clean + +```bash +rm -v pubring.gpg secring.gpg settings.xml github-deploy.key github-deploy.key.pub +``` + +# Use + +In comment to Issue/PR add text: +``` +@rultor deploy, tag=`0.1.11`, next=`0.2.0` +``` +Where +* `tag` - version for release +* `next` - version for next development iteration +* both of them not required: + * `tag` - get current version from `pom.xml` + * `next` - increment `tag` in 3rd part diff --git a/.rultor/deploy.sh b/.rultor/deploy.sh new file mode 100644 index 0000000..d50a82b --- /dev/null +++ b/.rultor/deploy.sh @@ -0,0 +1,86 @@ +#!/usr/bin/env bash + +version=${tag} +# Release version +if [ "${version}" = "" ] ; then + version=$(cat pom.xml | grep --extended-regexp --regexp="[0-9.]+(-SNAPSHOT)?" | head -n1 | sed -r 's_.*([0-9.]+)(-SNAPSHOT)?.*_\1_') +fi + +# Next version +if [ "${next}" = "" ] ; then + version_1=$(echo -n "${version}" | cut -d '.' -f1) + version_2=$(echo -n "${version}" | cut -d '.' -f2) + version_3=$(echo -n "${version}" | cut -d '.' -f3) + next=${version_1}.${version_2}.$[${version_3} + 1] +fi + +# Changelog for release +changelog_s=$(grep -F -e '# SNAPSHOT' -n CHANGELOG.md | cut -d ':' -f1 | head --lines=1) +changelog_f=$(grep -E -e '# [0-9.]+' -n CHANGELOG.md | cut -d ':' -f1 | head --lines=1) +changelog_s=$[${changelog_s} + 2] +changelog_f=$[${changelog_f} - 1] +changelog_l=$[${changelog_f} - ${changelog_s}] +if [ "${changelog_l}" -lt "0" ] ; then + changelog_l=0 +fi +changelog=$(cat CHANGELOG.md | tail --lines=+${changelog_s} | head --lines=${changelog_l}) + +gpg_pass=$(cat ../settings.xml | grep 'gpg.passphrase' | grep --only-matching '>.*<' | cut -c 2- | rev | cut -c 2- | rev) + +# Show information +echo "Release version: ${version}" +echo "Next version: ${next}" +echo "Changelog: ${changelog}" + +# GPG +gpg --list-keys --quiet +gpg_home=${HOME}/.gnupg +gpg_conf=${gpg_home}/gpg.conf +cp ../pubring.gpg ../secring.gpg ${gpg_home} +gpg --list-keys +echo "no-use-agent" >> ${gpg_conf} +echo "batch" >> ${gpg_conf} +echo "no-tty" >> ${gpg_conf} +echo "passphrase ${gpg_pass}" >> ${gpg_conf} + +# SSH +mkdir -p ~/.ssh +echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config +mv -v ../id_rsa ../id_rsa.pub ~/.ssh +chmod -R 600 ~/.ssh/* +echo "SSH config:" +cat ~/.ssh/config + +# Update version +sed --in-place "s/# SNAPSHOT/# SNAPSHOT\n\n# ${version}/g" CHANGELOG.md +mvn --batch-mode versions:set "-DnewVersion=${version}" + +# Build and sign +mvn --batch-mode clean install -P release -Dgpg.passphrase=${gpg_pass} + +# Commit and tag +git commit -am "Release version ${version}" +old_name=$(git config --get user.name) +old_email=$(git config --get user.email) +git config user.name 'Valeriy.Vyrva' +git config user.email 'valery1707@gmail.com' +git tag --local-user='valery1707@gmail.com' -m "Release version ${version}" v${version} +git config user.name ${old_name} +git config user.email ${old_email} +unset old_name +unset old_email + +# Deploy artifact to Maven Central +mvn --batch-mode deploy -P release -Dmaven.test.skip=true -Dgpg.passphrase=${gpg_pass} --settings ../settings.xml + +# Next development iteration +mvn --batch-mode versions:set "-DnewVersion=${next}-SNAPSHOT" +git commit -am "Prepare for next development iteration" + +# Push +git push --all origin +git tag --verify v${version} +git push --verbose --tags origin + +# Update Github release +mvn --batch-mode de.jutzig:github-release-plugin:release -P release --settings ../settings.xml --projects . -Dgithub.tag="v${version}" -Dgithub.releaseName="v${version}" -Dgithub.description="${changelog}" diff --git a/.rultor/github-deploy.key.asc b/.rultor/github-deploy.key.asc new file mode 100644 index 0000000..037efb4 --- /dev/null +++ b/.rultor/github-deploy.key.asc @@ -0,0 +1,44 @@ +-----BEGIN PGP MESSAGE----- +Version: GnuPG v1 + +hQEMA5qETcGag5w6AQf/bZhc7JTA20AZAHIr/Y/lLS+XRfJwrPVrKHMt5LKqkvFj +nUqkV0vkJIII3fY3/9eOyi4TPiyeR5MfE/JzBG3cAmik0XPy2gO91eIbGwM7ckUD +EN0OQrO2+tqaXxsexguArMVj97EE2C0aRxWe6Ga24jkmr13oLH7e89obCgI4djqU +ApsC3ujsu9LBmkat8KRmpYZBKoJl4ZZECjnXeyW3/1wSHGAEPLc4OS2BhnzhwtPm +kVMIKJaPsBfULmheIK+W9v4XSSJtzbF5K4GdfbpibyZWNScSqopbog4KJY59Xibg +fVJEZG4wi9YxpWHSRU0XgttIZhm8us10JVdcPaaP7dLqAWY1AZTqJ8FdtlPNCP39 +/tduL9oOZiGPbum+Fx0Rom+qMgMjRiwyXQzOgmqxAFSupB7Wb0TNBq6jfb51kRhN +epSgq5Yb0u69H6ZgHE/BdZnrYdaqJdPdUVGFkLcwz9ulGqiTdvIJDXdpCTv5HhTn +l5dCA/nJJvn9nSj7sDU1q/XiQ2HXxhi7INQ9/apNR9DeyV/azbyJFcdzdX6psMrv +Lv3kTkmFDBrYlZPgVv2UVpWbPTHczSsXddML2xrv1jqhcWgkMFyhHACtscSOQLyj +a/TyxETri7rW6+jLtOTgL/Y51ysrKCRvNS8o3DJpFEu8dXtZSEEe1NZ8uVSvpQZD +0yabCypS1dQ87iZLdh1Ht5pRcbLxsPpHRAFyGJTARl8+BgWpQzGzfqfg6ymYXo7N +Jer7L0D4YJ9UN1OzTfcvoJBWT2RnXzL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m +FFey2wL1uEYSOpusBIaj7ZNb1F6uDSYLuztil3ucoPs7RUvtdqPSV10S5qRc0DiM +Mbx4keNpv2v8PFsAQwkdUfgvgTG0J03OYy3nO7CCWvKblLVQksuyeV+37uWwQkYZ +sqj7s+XnV3cTILdGhzhkJgKu49O1I3VK6YUztp7NO6q+FtqvQbFIfO8Lfbdi9u/4 +mioYvy/YMsouBmNVhT1JSEt5Ult5sqniF10YCKXvT5kq8+BvxDn+eoPG0/xgpJF8 +wVNXgK7/3zM7UJ5d3QISnf2jGZQftARG6iBaCeYGV4AozAh4hZ04TLVXEYuVdmwm +iIr3Va5aC/YTbueN4DoAQ+rKDvjpaXoUsFbkPdce0Pf9DxGmD4D9/UA4SnccClOl +a1G5cJV0zzkFF4N8gbLuQbMN5oXGGg5iebkksusrFcp1/gni4x/+eYdY+pOUne9T +aZuarHGIbKIba5a5VCK8PryNsJU7exdJwivhRQb27mpSxbyLUOVseddtmWGruC14 +N+EcbS9uxtDcuiNY7UaZeftk/02qEYOwICb3oWdXVsFveREjdZB3Ydk945JH/XB9 +W4hDlQ== +=a9XW +-----END PGP MESSAGE----- diff --git a/.rultor/github-deploy.key.pub.asc b/.rultor/github-deploy.key.pub.asc new file mode 100644 index 0000000..b5343f8 --- /dev/null +++ b/.rultor/github-deploy.key.pub.asc @@ -0,0 +1,23 @@ +-----BEGIN PGP MESSAGE----- +Version: GnuPG v1 + +hQEMA5qETcGag5w6AQf/bd7dBkVRf9jk3KDsPt3ipXvtTaqO/jMO3nQrbzZlPYKp +cFeyvYme1wIrXQVQRYANUwsMTO+xaWVR1fcKgFUUypw6ISiqJ7YT0xT4DuC1Xkdm +X7swGLUeh4h3nr9g4WPbyXMj6qCiosbOeA9BTE3l6ph0vMHefVr7jztNZJ15fmMS +IT9xhasyf9VjXlqwSOfDSOM9gcerRhSOCNBnlKgFwxVjJLBpkV8P9/Ke/yWo1m7J +o1SBbqvBZCs9VesnudEU3VEtvfvMnH17QJW372F9olp48LvOIbN0HgH98xhEwO9U +QX+lWTwRrBzXTqHGxjBw80r1eXqknZIJ503qYGYBJNLpAXS/3icSDJxC0DJsIggI +Rl9fgqoZw8VU4MGpU4p7idLAiqvfS6rC0hXLpfVXYxJ1oWElA4s8R9obzyn01DrP +3HBESi01h1CBW+ka3VHmnD4XDDxvyxUgO410oLvocnQlVu46qErn5psirB3IxfXW +IwVpmcWi5Wv03edSoROTcTokrswxu//607v58b/0MyJp8/fkIkDzq201KmK5aKru +/kxmoOHS7TrFw9LteI1KvZ6ar93qovIPFyFkKA/Ekfh3YHQaqAFdBpgvRlxAP54E +h1NC9mjYKU6nW95JxqisAzAWbJDenzQ86n13YeFsQwpFhIdNV/q6ewTIB6BHPUp2 +6yq6DISVTpwRy5oJF92a6x4FTV2h6X+YGuFQXV2CdJuuP4yhBBPseX1WkfgjqWgN +D4ho723f4jCFKEMgkCEFzuL0jstxPRoBHdXGvG3lm6OZ+YLkg0jF5Vyzww+6GX1Y +QSaaDH1jhuSjQ1Y5ZHxfNx9em/LjbplyMVllfZMFnTEluuIHS82y8GQfmFpmHeMU +3LEvSeMmXlPpc7fTLoGHMSZaPBemCw5tzKZhcVeL8s/AKyRlXS3E/c6Uln/KgrWN +r/xHqvitfd47mWPCldLDKpspRft9m94vNiBpOFVcMjiCaJPjrfIBcX4D3iuI8kDL +F8eF1KJ98katfAS8mjILJGdAlrPEXMyHCPwqmE4USXnfJeVBT5zDlHnVsVQu/8sc +RRDKwQGQfPYWPwNEHh43xTZVi0+qRi5vWQ8282uvshl3Nw== +=DW2E +-----END PGP MESSAGE----- diff --git a/.rultor/pubring.gpg.asc b/.rultor/pubring.gpg.asc new file mode 100644 index 0000000..9186283 --- /dev/null +++ b/.rultor/pubring.gpg.asc @@ -0,0 +1,42 @@ +-----BEGIN PGP MESSAGE----- +Version: GnuPG v1 + +hQEMA5qETcGag5w6AQgAxFMrR+ijmUxK0KAz+WBbtCeR+/ETaqO7kulOmDHGNj7G +A4HP/5ssyFhy8ruLEWO3Xk5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rFfGmZ/3bd+jtw7t9BpyKX3pgmnMnmzRLpMnaefABJKfYlJzg8W +gehUlRu4lS2DObcxkm1ptFzfGX+nhnxvvtjySF6+sG8v+BxeIvCNVxN/tUtBkVeq +nus83mE= +=CiKF +-----END PGP MESSAGE----- diff --git a/.rultor/secring.gpg.asc b/.rultor/secring.gpg.asc new file mode 100644 index 0000000..92b62fa --- /dev/null +++ b/.rultor/secring.gpg.asc @@ -0,0 +1,71 @@ +-----BEGIN PGP MESSAGE----- +Version: GnuPG v1 + +hQEMA5qETcGag5w6AQf/a3umi0NQt33FlKzHuZWgw8MjszOF50j47d116B2QbyP8 +ZXmWSCS1cYXkV7OEm3u9VRRCNAuBfVaYNXVa9sf5V2tPtoZL4qnnSwHYWzyeeceH +bJv+44dQqZI5X3H8lnRIpv3z/Y0pE9bBBe3GuqSD0jP2yjPi0YOfqVpXOjqlpIvQ +mEpWjNCkvMKyFWSZhFDZYm4Ahlfh+KB97o0E0KBUhnYf6WMdgECc3vD7SGjaS96N +HaJlY//qQgXkaX8LNl8vb/G9JqtuytwC2w8KPrZIgI72Gn9yQxXY2eMPR00wqqTw +QTAcZ3X0/v0hawbmty84sTF6dBhAMwa7AnVP+88vmNLrAZgfjpcoOLFVJbKYEfHJ +GE2bebWSJAeCnCEXJZFXz1syxdclRSIz0n3L3FLQCEneshWzkuVugSOfj8i5DzZS +ctvMYPXmDVKhLKJEWxRmfbxe3nX/HOIia06/ruiLqLf5lFk2YnKZdid6eobX9qVL +YFCGS1PQdqLLsfYMYDYD/55y5niO0XixW711wDC7JFxOvr0W+A+SPdnY2XejwlVM +SKKm5SSfmkCOe6VRnyJBLdiOlSuuZm/xy+J2ZodpB47vt9eS7hYdXwcj4CFbQ2sT +Fzpu0zaSE0oMR5pRJhrL+Kcl4luBr1WUeSwjA7BaTj7nMHeJuY8/3rL/TaZbojdA +7bg8EL5R3dNmzmCjXGWuxzuaquhoYEC/O5cQbnMETgcBYaJ9A5l//kBWHF9z0GwM +fD+j4N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z+3THIEMnTy +WDRsiiJ6ivoX+rB/khO5NB/jP+77zF5v6SbswUQgLcSfw5jlKr2hMtXch/83NPGO +w54FzBydy2ibxsK0mA0/fWgpbL8/pM24KEiAerzCj0+Bsr6ILpk5oTeUM4U9kAvS +J+e6NCvchyeSPMveLUMWBocFy2Y8PlMRfBlTKwfteLXERYxZN7WChzhExe1IP23g +IJGAJO0ZkHpctol3snzstx0KkgF8qlli4DofTXgR +=P3PJ +-----END PGP MESSAGE----- diff --git a/.rultor/settings-template.xml b/.rultor/settings-template.xml new file mode 100644 index 0000000..ff21688 --- /dev/null +++ b/.rultor/settings-template.xml @@ -0,0 +1,23 @@ + + + + kaitai-maven-plugin + + /home/r + + + + + + + + oss.sonatype.org + + + + + github + + + + diff --git a/.rultor/settings.xml.asc b/.rultor/settings.xml.asc new file mode 100644 index 0000000..26387ba --- /dev/null +++ b/.rultor/settings.xml.asc @@ -0,0 +1,22 @@ +-----BEGIN PGP MESSAGE----- +Version: GnuPG v1 + +hQEMA5qETcGag5w6AQf/fQ0aQUG+NhXsuj5A2FhCsfctBWizvvCIubrR3p2cdj1e +Yyw2T6nVmwm8PbhakotlMJksu1M0EzIcStvT9S0Vqjd+IexL7Ww4PCPR6ggs9Yrl +09oilKgPukqVOioFu4kPzVfXuTZ5KQ65hmb8Gg9LWMhmyFY0vRDSiibRXmBOjKLi +TgGA3K36qsl8k0a3/cZloxJ3zHh+BqF68CTVtb9k2N8ViMJF0xjjlJsU95L/DUHp +BuaW3wHLSrbcuQbME7jsL6C5mWARmjB4XtfA7ciynCn5qISfxIQTMr28YiF5CvrF +sQc/+WM1d50WTkf/tytVvRhkz426f2pcBZpuEYqd39LBNQFpw6MffYvj+Oy6H69e +TRt29NauhadZhbb7Tdou0BezyDbb2v1zhOeBFDCeA4N8PQDrpajy0ksAjP/vq7xD +zVhpy7+UwlwgX8UaVyecBn9wgOd9pE/uBGOaTWBLgGF3juyIP1EdY9tFxZjLwgXf +lKD4pNSznhI47IRvqKXxrcL/EYtlX4chPb4ufBqjINxECZwt4CsOUStdSpZAkgYo +KJo+lqHHS05ih1Ytfnnb59CFXfTcfDWgDE1GoZznWrCCdjE/Gq19WajnD36UgaHm +le6s1kOopCEO5QAZ5NPNSDXo3oVAt2lr/N/Y7jPS6YcH03tmOkIZqh2qQP0DpJ9G +5ZIPq9BMVXPUNw73JXXLE+dNxLF34G++gb39ndOyGno8iHH27tbymVHuynpgrWEn +dNEOYjlWfqtBfEmWW04RXK8T2bmE7UVDNUUed2cMzxUKmZHw/mocatZOHxJNi8Lz +cyaodOZJpP926JyBlPVY0DdbBkXgDwEyjHABwXHboKwuLuRmAMO5cKQDIJb7wD6d +MhdnjmDoPZbkyYEP1b5CKQq/fW6qXSbwF0HREQMyRbgvsQFXVzECCQ/H9M3bihVV +IREM6Nyuu4rLB/Ge0d2kC2FyK2ub9DeUl+szzKXs8EvpYmCb2YRAW42ydSpGvY1+ +C+RyQ9cDoA== +=+vub +-----END PGP MESSAGE----- diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..20fec58 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +Change log for releases. + +# SNAPSHOT + +* First public release +* Build `*.ksy` with Kaitai compiler diff --git a/README.md b/README.md index cfe0a01..34d0f12 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -[![Build Status](https://travis-ci.org/valery1707/kaitai-maven-plugin.svg?branch=master)](https://travis-ci.org/valery1707/kaitai-maven-plugin) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/name.valery1707.kaitai/kaitai-maven-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/name.valery1707.kaitai/kaitai-maven-plugin) +[![Build Status](https://travis-ci.org/valery1707/kaitai-maven-plugin.svg?branch=master)](https://travis-ci.org/valery1707/kaitai-maven-plugin) +[![DevOps By Rultor.com](http://www.rultor.com/b/valery1707/kaitai-maven-plugin)](http://www.rultor.com/p/valery1707/kaitai-maven-plugin) ### Useful commands diff --git a/pom.xml b/pom.xml index e99d651..616cd02 100644 --- a/pom.xml +++ b/pom.xml @@ -142,8 +142,18 @@ + + + org.codehaus.mojo + versions-maven-plugin + 2.3 + + false + + + run-its @@ -184,5 +194,121 @@ + + + + release + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.4 + + + attach-javadocs + + jar + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + oss.sonatype.org + https://oss.sonatype.org/ + ${project.version} + + + + deploy-to-sonatype + deploy + + deploy + release + + + + + + + de.jutzig + github-release-plugin + 1.2.0 + + github + ${github.description} + ${github.releaseName} + ${github.tag} + + + ${project.basedir} + + **/kaitai-*.jar + **/kaitai-*.pom + **/kaitai-*.asc + + + **/kaitai-*-test-*.* + local-repo + + + + + + + + + + + + oss.sonatype.org + https://oss.sonatype.org/content/repositories/snapshots + + + oss.sonatype.org + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + +