Skip to content

Commit eeeb079

Browse files
committed
[FAB-16003] 1.4.2 Java Release
Big update in this release is the preview of the Contract Programming Model Change-Id: I389d256d4db35becc2a389792b3295a395bbbc3a Signed-off-by: Matthew B. White <[email protected]>
1 parent d7e63ab commit eeeb079

File tree

10 files changed

+92
-8
lines changed

10 files changed

+92
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## v 1.4.2
2+
Thu 18 Jul 11:06:09 BST 2019
3+
4+
* [beed2e6](https://github.com/hyperledger/fabric-chaincode-java/commit/beed2e6) [FAB-16003](https://jira.hyperledger.org/browse/FAB-16003) 1.4.2 Java Release
5+
* [7f1e772](https://github.com/hyperledger/fabric-chaincode-java/commit/7f1e772) [FAB-15213](https://jira.hyperledger.org/browse/FAB-15213) In-repo examples, readme update
6+
* [ea32146](https://github.com/hyperledger/fabric-chaincode-java/commit/ea32146) [FAB-15883](https://jira.hyperledger.org/browse/FAB-15883) Removed swagger annotations
7+
* [605bebe](https://github.com/hyperledger/fabric-chaincode-java/commit/605bebe) [FAB-13753](https://jira.hyperledger.org/browse/FAB-13753) Contract Support
8+
* [1c688a3](https://github.com/hyperledger/fabric-chaincode-java/commit/1c688a3) [FAB-15136](https://jira.hyperledger.org/browse/FAB-15136) Update javaenv mutiarch publish script
9+
* [3597863](https://github.com/hyperledger/fabric-chaincode-java/commit/3597863) [FAB-14973](https://jira.hyperledger.org/browse/FAB-14973)Prepare for next relaase 1.4.2
10+
111
## v1.4.1
212
Fri Apr 5 21:29:04 IDT 2019
313

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ subprojects {
2222
apply plugin: 'maven'
2323

2424
group = 'org.hyperledger.fabric-chaincode-java'
25-
version = '1.4.2-SNAPSHOT'
25+
version = '1.4.2'
2626

2727
sourceCompatibility = 1.8
2828
targetCompatibility = 1.8

fabric-chaincode-example-gradle/build.gradle

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

1717
dependencies {
18-
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.4.2-SNAPSHOT'
18+
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.4.2'
1919
testCompile group: 'junit', name: 'junit', version: '4.12'
2020
}
2121

fabric-chaincode-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>1.4.2-SNAPSHOT</fabric-chaincode-java.version>
15+
<fabric-chaincode-java.version>1.4.2</fabric-chaincode-java.version>
1616

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

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: '1.4.2-SNAPSHOT'
17+
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.4.2'
1818
testCompile group: 'junit', name: 'junit', version: '4.12'
1919
}
2020

fabric-chaincode-example-sbe/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group 'org.hyperledger.fabric-chaincode-java'
7-
version '1.0-SNAPSHOT'
7+
version '1.0'
88

99
sourceCompatibility = 1.8
1010

@@ -14,7 +14,7 @@ repositories {
1414
}
1515

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

fabric-contract-example/gradle/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repositories {
2020
}
2121

2222
dependencies {
23-
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.4.2-SNAPSHOT'
23+
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.4.2'
2424
compile group: 'org.json', name: 'json', version: '20180813'
2525
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
2626
testImplementation 'org.assertj:assertj-core:3.11.1'

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>1.4.2-SNAPSHOT</fabric-chaincode-java.version>
15+
<fabric-chaincode-java.version>1.4.2</fabric-chaincode-java.version>
1616

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

release_notes/v1.4.2.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
v1.4.2 July 18, 2019
2+
----------------------------
3+
4+
Release Notes
5+
-------------
6+
This release contains a preview of the updated Contract programming model. This is the same as
7+
that released within Node.js earlier in 2019. The method of operation is the same
8+
as with the Node.js version, tailored to Java language idioms.
9+
10+
Future releases will build on this preview; please experiement with this and provide feedback.
11+
(RocketChat and JIRA)
12+
13+
For more information on the Contract Programming Model please
14+
see See https://hyperledger-fabric.readthedocs.io/en/developapps/developing_applications.html
15+
16+
17+
baseimage version: 0.4.15
18+
Java version: openjdk version "1.8.0_181"
19+
20+
Known Vulnerabilities
21+
---------------------
22+
none
23+
24+
Resolved Vulnerabilities
25+
------------------------
26+
none
27+
28+
Known Issues & Workarounds
29+
--------------------------
30+
none
31+
Change Log
32+
----------
33+
https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/CHANGELOG.md#v141

scripts/release.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
# Exit on first error, print all commands.
3+
set -e
4+
set -o pipefail
5+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
6+
7+
function abort {
8+
echo "!! Exiting shell script"
9+
echo "!!" "$1"
10+
exit -1
11+
}
12+
13+
VERSION=$(cat build.gradle | sed -n "s/version = '\(.*\)-SNAPSHOT'/\1/p")
14+
echo Version is ${VERSION}
15+
16+
# Remove the snapshot from the main build.gradle
17+
for GRADLE_FILE in "${DIR}/build.gradle" "${DIR}/fabric-chaincode-example-sbe/build.gradle" "${DIR}/fabric-contract-example/gradle/build.gradle" "${DIR}/fabric-chaincode-example-gradle/build.gradle" "${DIR}/fabric-chaincode-example-sacc/build.gradle"
18+
do
19+
sed -i "s/version:\(.*\)-SNAPSHOT/version:\1/" "${GRADLE_FILE}"
20+
done
21+
22+
for MAVEN_FILE in "${DIR}/build.gradle" "${DIR}/fabric-chaincode-example-maven/pom.xml" "${DIR}/fabric-contract-example/maven/pom.xml"
23+
do
24+
sed -i "s/<fabric-chaincode-java.version>\(.*\)-SNAPSHOT/<fabric-chaincode-java.version>\1/" "${MAVEN_FILE}"
25+
done
26+
27+
if [[ -f "${DIR}/release_notes/v${VERSION// }.txt" ]]; then
28+
echo "Release notes exist, hope they make sense!"
29+
else
30+
abort "No releases notes under the file ${DIR}/release_notes/v${VERSION// }.txt exist";
31+
fi
32+
33+
OLD_VERSION=$(cat ./CHANGELOG.md | sed -n 1p | sed -n -e "s/.*v\(.*\)/\1/p")
34+
echo Previous version is v${OLD_VERSION}
35+
36+
echo "Writing change log..."
37+
"${DIR}/scripts/changelog.sh" "v${OLD_VERSION}" "v${VERSION}"
38+
echo "...done"
39+
40+
41+

0 commit comments

Comments
 (0)