Skip to content

Commit b275bd6

Browse files
Update versions following v2.5.6 release (#381)
Signed-off-by: Mark S. Lewis <[email protected]>
1 parent 1056635 commit b275bd6

File tree

13 files changed

+28
-70
lines changed

13 files changed

+28
-70
lines changed

RELEASING.md

Lines changed: 14 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2,74 +2,32 @@
22

33
The following artifacts are created as a result of releasing Fabric Chaincode Java:
44

5-
- docker images
6-
- [fabric-javaenv](https://hub.docker.com/r/hyperledger/fabric-javaenv)
7-
- Java libraries
8-
- [fabric-chaincode-shim](https://search.maven.org/search?q=a:fabric-chaincode-shim)
9-
10-
**Note:** A docker image with a matching V.R version is required before releasing a new version of Fabric.
5+
- `fabric-javaenv` Docker images:
6+
- [Docker Hub](https://hub.docker.com/r/hyperledger/fabric-javaenv)
7+
- [GitHub Packages](https://github.com/orgs/hyperledger/packages/container/package/fabric-javaenv)
8+
- `fabric-chaincode-shim` Java libraries:
9+
- [Maven Central](https://central.sonatype.com/artifact/org.hyperledger.fabric-chaincode-java/fabric-chaincode-shim)
10+
- [GitHub Packages](https://github.com/hyperledger/fabric-chaincode-java/packages/50049)
1111

1212
## Before releasing
1313

14-
It's useful to create an issue to keep track of each release, for example [Release v2.1.0](https://jira.hyperledger.org/browse/FABCJ-283).
15-
1614
The following tasks are required before releasing:
1715

18-
- Update version numbers in `build.gradle` files to the required version
19-
- Update test, sample, and docs files to match the new version
20-
- Update the [`COMPATIBILITY.md`](./COMPATIBILITY.md)
21-
22-
See the [[FABCJ-289] release: 2.2.0 LTS](https://github.com/hyperledger/fabric-chaincode-java/pull/124) pull request for an example, although be careful to search for all versions in the codebase as they're easy to miss and things change!
23-
24-
Ensure the last branch build passed since exactly this repository state will be released.
16+
- Ensure the version number in `build.gradle` is the required release version.
17+
- Check the last branch build passed since exactly this repository state will be released.
2518

2619
## Create release
2720

2821
Creating a GitHub release on the [releases page](https://github.com/hyperledger/fabric-chaincode-java/releases) will trigger the build to publish the new release.
2922

30-
When drafting the release, create a new tag for the new version (with a `v` prefix), e.g. `v2.1.4`
23+
When drafting the release, create a new tag for the new version (with a `v` prefix). For example: `v2.1.4`
3124

3225
See previous releases for examples of the title and description.
3326

34-
## Publish Java libraries
35-
36-
Log on to the [nexus repository manager](https://oss.sonatype.org/#welcome) to manually publish the JARs which were pushed by the release build.
37-
38-
Find the results of the release build under _Build Promotion > Staging Repositories_ and perform the following steps:
39-
40-
1. Close
41-
42-
You should see a series of close activities (see note)
43-
44-
2. Release using the automatically drop option
45-
46-
You should see a series of release activities (see note)
47-
48-
Note: you may need to refresh to update the activities view.
49-
50-
When the release has completed and the _Staging Repositories_ list is empty, the Java chaincode libraries should appear in the maven repository. They can take some time to appear in the UI but they should exist in the repository sooner.
51-
5227
## After releasing
5328

54-
- Update version numbers in `build.gradle` files to the next version
55-
- Update test, sample, and docs files to match the new version
56-
57-
See the [Bump version to 2.2.1](https://github.com/hyperledger/fabric-chaincode-java/pull/127) pull request for an example. It should include almost all the files changed to prepare for the release, except for the release notes and changelog which do not need updating.
58-
59-
## Interim Build Publishing
60-
61-
The nightly Azure Pipeline Builds will also publish the 'dev' drivers to Artifactory. These can be accessed via the repository at
62-
63-
```
64-
maven {
65-
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
66-
}
67-
```
68-
69-
These 'dev' drivers are built from the main branch only, and have a version format including the date for example `2.3.1.dev.20210303`. They can be accessed in a build file like this
70-
71-
```
72-
dependencies {
73-
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.3.1.dev.+'
74-
}
75-
```
29+
- Update the version number in `build.gradle` to the next version.
30+
- Update version numbers in `fabric-chaincode-docker/build.gradle` to match the next version.
31+
- Update the `fabric-chaincode-shim` dependency version in all `build.gradle` and `pom.xml` files within `fabric-chaincode-integration-test/src/contracts` to match the next version.
32+
- Update the `fabric-chaincode-shim` dependency version in all `build.gradle`, `build.gradle.kts` and `pom.xml` files within `examples` to mast the last _released_ version.
33+
- Check that `COMPATIBILITY.md` is correct and update if required.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
id "com.diffplug.spotless" version "7.0.4"
1010
}
1111

12-
version = '2.5.6'
12+
version = '2.5.7'
1313

1414

1515
// If the nightly property is set, then this is the scheduled main

examples/fabric-contract-example-as-service/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repositories {
1313
}
1414

1515
dependencies {
16-
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.5'
16+
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.6'
1717
implementation 'org.json:json:20250517'
1818
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.1'
1919
testImplementation 'org.assertj:assertj-core:3.27.3'

examples/fabric-contract-example-gradle-kotlin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
version = "0.0.1"
1515

1616
dependencies {
17-
implementation("org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.5")
17+
implementation("org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.6")
1818
implementation("org.json:json:20250517")
1919
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
2020

examples/fabric-contract-example-gradle/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ repositories {
1313
}
1414

1515
dependencies {
16-
compile 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.5'
17-
compile 'org.json:json:20250517'
16+
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.6'
17+
implementation 'org.json:json:20250517'
1818
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.1'
1919
testImplementation 'org.assertj:assertj-core:3.27.3'
2020
testImplementation 'org.mockito:mockito-core:5.18.0'

examples/fabric-contract-example-maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1313

1414
<!-- fabric-chaincode-java -->
15-
<fabric-chaincode-java.version>2.5.5</fabric-chaincode-java.version>
15+
<fabric-chaincode-java.version>2.5.6</fabric-chaincode-java.version>
1616

1717
<!-- Logging -->
1818
<logback.version>1.5.15</logback.version>

examples/ledger-api/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ repositories {
1313
}
1414

1515
dependencies {
16-
compile 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.5'
17-
compile 'org.json:json:20250517'
16+
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.6'
17+
implementation 'org.json:json:20250517'
1818
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.1'
1919
testImplementation 'org.assertj:assertj-core:3.27.3'
2020
testImplementation 'org.mockito:mockito-core:5.18.0'

fabric-chaincode-docker/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ tasks.register('copyAllDeps', Copy) {
5959
tasks.register('buildImage', DockerBuildImage) {
6060
dependsOn copyAllDeps
6161
inputDir = project.file('Dockerfile').parentFile
62-
images = ['hyperledger/fabric-javaenv', 'hyperledger/fabric-javaenv:2.5', 'hyperledger/fabric-javaenv:amd64-2.5.6', 'hyperledger/fabric-javaenv:amd64-latest']
62+
images = ['hyperledger/fabric-javaenv', 'hyperledger/fabric-javaenv:2.5', 'hyperledger/fabric-javaenv:amd64-2.5.7', 'hyperledger/fabric-javaenv:amd64-latest']
6363
}

fabric-chaincode-integration-test/src/contracts/bare-gradle/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repositories {
2323
}
2424

2525
dependencies {
26-
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.6'
26+
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.7'
2727
implementation 'org.hyperledger.fabric:fabric-protos:0.3.7'
2828
}
2929

fabric-chaincode-integration-test/src/contracts/bare-maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1313

1414
<!-- fabric-chaincode-java -->
15-
<fabric-chaincode-java.version>2.5.6</fabric-chaincode-java.version>
15+
<fabric-chaincode-java.version>2.5.7</fabric-chaincode-java.version>
1616

1717
</properties>
1818

0 commit comments

Comments
 (0)