Code style used in Mockobor can be imported from config
-subdirectory.
- for IntelliJ IDEA — codestyle-idea.xml
- for Eclipse — codestyle-eclipse.xml
In "develop" branch:
- Update section "In the next Version" in change log file CHANGELOG.md (don't change version, only add changes in the section).
- Commit all changes
- Clean git history, if necessary
- Start
> ./gradlew -q createRelease
. It does follows:- updates versions in CHANGELOG.md and README.md files
- commits all changes (with message "Release version: ${version}")
- adds git tag "v${version}" (the tag starts with "v", ${version} - just created release version)
In "master" branch:
- Merge (fast-forward) "develop" into "master"
- Push both branches to GitHub:
git push origin master develop
- Push new created release tag:
git push origin v${version}
(replace ${version} with just created release version)- It stars the GitHub action on new tag
v*
to- create a new GutHub-Release
- create a new artifact
- publish it to Maven Central via Sonatype OSSRH
- It stars the GitHub action on new tag
To create a new minor (middle) or major version use versionIncrementer=incrementMinor
or release.versionIncrementer=incrementMajor
parameters:
> ./gradlew -q createRelease "-Prelease.versionIncrementer=incrementMinor"
To create a version with the custom version number use release.forceVersion
parameter:
> ./gradlew -q createRelease "-Prelease.forceVersion=x.x.x"
start ./gradlew -q currentVersion
- versioning — Aion Release Plugin
- publishing — Gradle Nexus Publish Plugin