Skip to content

Commit 7e62632

Browse files
committed
v 4.4.1 release preparation
1 parent e8de689 commit 7e62632

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,17 @@ The ideal next step is to test out the [Kontent Sample Spring Boot app](/sample-
4848

4949
## Publishing
5050

51-
> If you want to publish the new version, you need to have an access to [Bintray's Kentico organization](https://bintray.com/kentico).
51+
> To publish a new version, it iss required to have write permissions for this repository (to be able to create releases) and access to the [Nexus Repository Manager](https://oss.sonatype.org/).
52+
53+
1. Verify that everything in the branch is ready to be published and the [build and tests](https://github.com/Kentico/kontent-java-packages/actions/workflows/gradle.yml) are passing.
54+
1. Create new GitHub release - **the tag name of the release will be used as a version**
55+
* If you define tag name with "-SNAPSHOT" suffix i.e. `4.4.0-SNAPSHOT` artifact will be published to the `https://oss.sonatype.org/content/repositories/snapshots/`, so that you could use it when you want to test out beta version.
56+
* Release creation triggers the [Publish Github workflow](https://github.com/Kentico/kontent-java-packages/actions/workflows/publish.yml) and creates a publish the artifacts to "Staging" repositories on Nexus repository manager.
57+
1. Log in to the [Nexus Repository Manager](https://oss.sonatype.org/).
58+
1. Select "Staging repositories", verify the repository content (*sometimes it takes a couple of minutes until the repository is visible in the Nexus Repository Manager UI*).
59+
1. Close the Staging repository
60+
1. Release the Closed repository
61+
62+
> 💡 This is just an abbreviated description of the publishing process. If you want to see detailed publishing description, checkout the [wiki page "Publishing process"](https://github.com/Kentico/kontent-java-packages/wiki/Release-process).
5263
53-
1. Copy the `local.properties.template` file in this directory to `local.properties` (which will be idnored by Git)).
54-
1. Set each variable on `local.properties` from the password manager, or contact @Kentico/developer-relations team to get them.
55-
1. Set version you want to publish in [`build.gradle`](./build.gradle#L69).
56-
1. Build the solution `./gradlew build`.
57-
1. Run `./gradlew bintrayUpload`.
5864

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ allprojects {
7474
def repoGroupIdVal = 'com.github.kentico';
7575

7676
subprojects {
77-
version = System.getenv('RELEASE_TAG') != null && !System.getenv('RELEASE_TAG').isEmpty() ? System.getenv('RELEASE_TAG') : '4.4.1-SNAPSHOT'
77+
version = System.getenv('RELEASE_TAG') != null && !System.getenv('RELEASE_TAG').isEmpty() ? System.getenv('RELEASE_TAG') : '4.4.1'
7878
ext.repoGroupId = repoGroupIdVal
7979
group = repoGroupIdVal
8080
ext.repositoryHost = 'maven.org'

0 commit comments

Comments
 (0)