Skip to content

Commit 151e719

Browse files
mbwhitejt-nti
authored andcommitted
[FABCJ-273] Release 2.0.0
Release version 2.0.0 Signed-off-by: Matthew B White <[email protected]>
1 parent 659a1c4 commit 151e719

File tree

7 files changed

+68
-15
lines changed

7 files changed

+68
-15
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## v2.0.0
2+
Fri 24 Jan 10:26:03 GMT 2020
3+
4+
* [659a1c4](https://github.com/hyperledger/fabric-chaincode-java/commit/659a1c4) Port fixes from master branch for Coverage & typos
5+
* [9cf1e6a](https://github.com/hyperledger/fabric-chaincode-java/commit/9cf1e6a) [FABCI-482](https://jira.hyperledger.org/browse/FABCI-482) Update Nexus URL's to Artifactory
6+
* [7ab7145](https://github.com/hyperledger/fabric-chaincode-java/commit/7ab7145) Fix typos in README.md
7+
* [67fdc40](https://github.com/hyperledger/fabric-chaincode-java/commit/67fdc40) [FABCJ-259](https://jira.hyperledger.org/browse/FABCJ-259) Pagination Fix
8+
* [1609425](https://github.com/hyperledger/fabric-chaincode-java/commit/1609425) Update maintainers list
9+
* [1a45e3d](https://github.com/hyperledger/fabric-chaincode-java/commit/1a45e3d) [FABCJ-95](https://jira.hyperledger.org/browse/FABCJ-95) Checkstyle
10+
11+
112
## v2.0.0-beta
213
Thu 12 Dec 12:45:44 GMT 2019
314

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
apply plugin: 'idea'
88
apply plugin: 'eclipse-wtp'
9-
version = '2.0.0-beta.1'
9+
version = '2.0.0'
1010
allprojects {
1111
repositories {
1212
mavenCentral()

ci/azure-pipelines.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ schedules:
1313
displayName: "Chaincode Java Nightly Driver"
1414
branches:
1515
include:
16-
- master
16+
- "release-2.0"
1717
always: true
1818

1919
trigger:
2020
branches:
2121
include:
22-
- "master"
22+
- "release-2.0"
2323
tags:
2424
include:
2525
- "*"
@@ -134,6 +134,8 @@ stages:
134134
mkdir -p $(Build.SourceBranchName)/api
135135
rm -rf $(Build.SourceBranchName)/api/*
136136
cp -r fabric-chaincode-shim/build/docs/javadoc/* $(Build.SourceBranchName)/api
137+
138+
# if the gh-pages is present from the previous script, then copy across the files across.
137139
if [ -d gh-pages ]; then
138140
find . -maxdepth 1 ! \( -name [.]* -o -name 'gh-pages' -o -name 'master' -o -name 'release-*' \) -exec rm -rf {} \;
139141
cp -r gh-pages/* .
@@ -153,17 +155,13 @@ stages:
153155
- stage: Publish_tag
154156
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
155157
jobs:
156-
- job: publish_release
158+
- job: docker_publish
157159
steps:
158160
- template: templates/build-data.yml
159161
- task: DownloadPipelineArtifact@2
160162
inputs:
161163
artifact: javaenv-docker-image
162164
path: $(Build.SourcesDirectory)/build
163-
- task: DownloadSecureFile@1
164-
name: keyring
165-
inputs:
166-
secureFile: secring.gpg
167165
- script: |
168166
wget -qO "$PWD/manifest-tool" https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64
169167
chmod +x ./manifest-tool
@@ -173,14 +171,21 @@ stages:
173171
docker login ${DOCKER_REGISTRY_URL} --username=${DOCKER_REGISTRY_USERNAME} --password=${DOCKER_REGISTRY_PASSWORD}
174172
echo "Logged in to docker registry"
175173
# tag javaenv image to PACKAGE_VERSION
176-
docker tag hyperledger/fabric-javaenv fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)-beta
174+
docker tag hyperledger/fabric-javaenv hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)
177175
# push javaenv to repository
178176
docker push hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)
179-
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)-beta" --target "hyperledger/fabric-javaenv:$(BuildData.PACKAGE_VERSION)-beta"
180-
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)-beta" --target "hyperledger/fabric-javaenv:2.0"
177+
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)" --target "hyperledger/fabric-javaenv:$(BuildData.PACKAGE_VERSION)"
178+
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)" --target "hyperledger/fabric-javaenv:2.0"
181179
env:
182180
DOCKER_REGISTRY_USERNAME: $(DockerHub-Username)
183181
DOCKER_REGISTRY_PASSWORD: $(DockerHub-Password)
182+
- job: jar_publish
183+
steps:
184+
- template: templates/build-data.yml
185+
- task: DownloadSecureFile@1
186+
name: keyring
187+
inputs:
188+
secureFile: secring.gpg
184189
- script: |
185190
./gradlew -Psigning.keyId=${SIGNING_ID} -Psigning.password=${SIGNING_PASSWORD} -Psigning.secretKeyRingFile=${KEYRING_FILE} -PossrhUsername=${OSSRH_USER} -PossrhPassword=${OSSRH_PASSWORD} uploadArchives
186191
env:

fabric-chaincode-integration-test/src/contracts/fabric-chaincode-example-sacc/build.gradle

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

1616
dependencies {
17-
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.0.0-beta.1'
17+
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.0.0'
1818
testCompile group: 'junit', name: 'junit', version: '4.12'
1919
}
2020

fabric-chaincode-integration-test/src/contracts/fabric-chaincode-example-sbe/build.gradle

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

1616
dependencies {
17-
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.0.0-beta.1'
17+
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.0.0'
1818
testCompile group: 'junit', name: 'junit', version: '4.12'
1919
}
2020

release_notes/v2.0.0.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
v2.0.0 20 January 2020
2+
--------------------------
3+
4+
Release Notes
5+
-------------
6+
Java chaincode v2.0.0 includes multiple improvements:
7+
8+
Javaenv docker images is now based on Alpine to reduce the size.
9+
Integration tests have been improved.
10+
Java chaincode extra validation during start.
11+
Added support for maven projects.
12+
13+
adoptopenjdk/openjdk11:jdk-11.0.4_11-alpine is now used instead of baseimage for the basis of javaenv Docker image.
14+
15+
Known Vulnerabilities
16+
---------------------
17+
none
18+
19+
Resolved Vulnerabilities
20+
------------------------
21+
none
22+
23+
Known Issues & Workarounds
24+
--------------------------
25+
none
26+
27+
Change Log
28+
----------
29+
https://github.com/hyperledger/fabric-chaincode-java/blob/master/CHANGELOG.md#v200

scripts/changelog.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66
#
7+
set -ev
78

9+
PREVIOUS_TAG=$1
10+
NEW_VERSION=$2
811

9-
echo "## $2\n$(date)" >> CHANGELOG.new
12+
: ${PREVIOUS_TAG:?}
13+
: ${NEW_VERSION:?}
14+
15+
echo "## ${NEW_VERSION}" >> CHANGELOG.new
16+
echo "$(date)" >> CHANGELOG.new
1017
echo "" >> CHANGELOG.new
11-
git log $1..HEAD --oneline | grep -v Merge | sed -e "s/\[\(FAB-[0-9]*\)\]/\[\1\](https:\/\/jira.hyperledger.org\/browse\/\1\)/" -e "s/ \(FAB-[0-9]*\)/ \[\1\](https:\/\/jira.hyperledger.org\/browse\/\1\)/" -e "s/\([0-9|a-z]*\)/* \[\1\](https:\/\/github.com\/hyperledger\/fabric-chaincode-java\/commit\/\1)/" >> CHANGELOG.new
18+
git log ${PREVIOUS_TAG}..HEAD --oneline | grep -v Merge | sed -e "s/\[\{0,1\}\(FAB[^0-9]*-[0-9]*\)\]\{0,1\}/\[\1\](https:\/\/jira.hyperledger.org\/browse\/\1\)/" -e "s/\([0-9|a-z]*\)/* \[\1\](https:\/\/github.com\/hyperledger\/fabric-chaincode-java\/commit\/\1)/" >> CHANGELOG.new
1219
echo "" >> CHANGELOG.new
1320
cat CHANGELOG.md >> CHANGELOG.new
1421
mv -f CHANGELOG.new CHANGELOG.md
22+

0 commit comments

Comments
 (0)