Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit cd9c378

Browse files
Apply previous main branch changes following branch rename
Signed-off-by: Mark S. Lewis <[email protected]>
1 parent 623cb41 commit cd9c378

13 files changed

+55
-65
lines changed

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ repository:
22
name: fabric-gateway-java
33
description: Hyperledger Fabric Gateway SDK for Java https://wiki.hyperledger.org/display/fabric
44
homepage: https://hyperledger.github.io/fabric-gateway-java/
5-
default_branch: master
5+
default_branch: main
66
has_downloads: true
77
has_issues: false
88
has_projects: false

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Pull request
33
on:
44
pull_request:
55
branches:
6-
- release-2.2
6+
- main
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Push
33
on:
44
push:
55
branches:
6-
- release-2.2
6+
- main
77

88
jobs:
99
build:

.github/workflows/schedule.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Scheduled build
2+
3+
on:
4+
schedule:
5+
- cron: "55 0 * * *"
6+
7+
jobs:
8+
main:
9+
uses: ./.github/workflows/test.yml
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Security vulnerability scan"
2+
3+
on:
4+
schedule:
5+
- cron: "20 23 * * *"
6+
7+
jobs:
8+
scan:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Java
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: "17"
16+
distribution: "temurin"
17+
cache: maven
18+
- name: Scan
19+
run: mvn -P owasp dependency-check:check
20+
- name: "Archive dependency-check report"
21+
if: success() || failure()
22+
uses: actions/upload-artifact@v3
23+
with:
24+
name: dependency-check-report
25+
path: target/dependency-check-report.html

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ docs to learn how to make contributions to this exciting project.
99

1010
## Code of Conduct Guidelines <a name="conduct"></a>
1111

12-
See our [Code of Conduct Guidelines](../blob/master/CODE_OF_CONDUCT.md).
12+
See our [Code of Conduct Guidelines](../blob/main/CODE_OF_CONDUCT.md).
1313

1414
## Maintainers <a name="maintainers"></a>
1515

16-
Should you have any questions or concerns, please reach out to one of the project's [Maintainers](../blob/master/MAINTAINERS.md).
16+
Should you have any questions or concerns, please reach out to one of the project's [Maintainers](../blob/main/MAINTAINERS.md).
1717

1818
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Hyperledger Fabric Gateway SDK for Java
1+
# Hyperledger Fabric Gateway SDK for Java <a href="https://github.com/hyperledger/fabric-gateway-java/actions/workflows/schedule.yml"><img src="https://github.com/hyperledger/fabric-gateway-java/actions/workflows/schedule.yml/badge.svg" alt="Build status" style="float: right"></a>
2+
3+
> **Note:** When developing applications for Hyperledger Fabric v2.4 and later, you should use the [Fabric Gateway client API](https://hyperledger.github.io/fabric-gateway/).
24
35
The Fabric Gateway SDK allows applications to interact with a Fabric blockchain network. It provides a simple API to submit transactions to a ledger or query the contents of a ledger with minimal code.
46

@@ -62,7 +64,7 @@ class Sample {
6264
### API documentation
6365

6466
Full Javadoc documentation is published for each of the following versions:
65-
- [2.2](https://hyperledger.github.io/fabric-gateway-java/release-2.2/)
67+
- [2.2](https://hyperledger.github.io/fabric-gateway-java/main/)
6668
- [1.4](https://hyperledger.github.io/fabric-gateway-java/release-1.4/)
6769

6870
### Maven
@@ -89,11 +91,11 @@ implementation 'org.hyperledger.fabric:fabric-gateway-java:2.2.0'
8991

9092
The following table shows versions of Fabric, Java and other dependencies that are explicitly tested and that are supported for use with version 2.2 of the Fabric Gateway SDK. Refer to the appropriate GitHub branch for compatibility of other release versions.
9193

92-
| | Tested | Supported |
93-
| --- | ------ | --------- |
94+
| | Tested | Supported |
95+
| --- | --- | --- |
9496
| **Fabric** | 2.2 | 2.2 |
95-
| **Java** | 8, 11 | 8+ |
96-
| **Platform** | Ubuntu 20.04 | |
97+
| **Java** | 8, 11, 17 | 8+ |
98+
| **Platform** | Ubuntu 22.04 | |
9799

98100
#### Client applications running on POWER architecture
99101
To run Java SDK clients on IBM POWER systems (e.g. zLinux), use Java 11 and set the SSL provider to ‘JDK’ by either supplying the -D command line option:

dependency-suppressions.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@
2020
<packageUrl regex="true">^pkg:maven/org\.hyperledger\.fabric\-sdk\-java/fabric\-sdk\-java@.*$</packageUrl>
2121
<cve>CVE-2022-36023</cve>
2222
</suppress>
23-
<suppress>
24-
<notes><![CDATA[
25-
Vulnerability in WebKit browser, not netty-tcnative-boringssl
26-
]]></notes>
27-
<packageUrl regex="true">^pkg:maven/io\.netty/netty\-tcnative\-boringssl\-static@.*$</packageUrl>
28-
<cve>CVE-2011-1797</cve>
29-
</suppress>
3023
<suppress>
3124
<notes><![CDATA[
3225
fabric-sdk-java only uses SnakeYaml's SafeConstructor for parsing YAML, which mitigates the vulnerability

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<dependency>
9696
<groupId>org.mockito</groupId>
9797
<artifactId>mockito-core</artifactId>
98-
<version>4.8.0</version>
98+
<version>4.9.0</version>
9999
<scope>test</scope>
100100
</dependency>
101101
<dependency>
@@ -309,7 +309,6 @@
309309
<version>3.2.0</version>
310310
<configuration>
311311
<configLocation>checkstyle.xml</configLocation>
312-
<encoding>UTF-8</encoding>
313312
<consoleOutput>true</consoleOutput>
314313
<failsOnError>true</failsOnError>
315314
<linkXRef>false</linkXRef>

scripts/ci_scripts/publishApiDocs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ set -e -o pipefail
1515
: "${SOURCE_BRANCH:?}" # Source code branch name
1616
: "${JAVADOC_DIR:?}" # Directory where built JavaDoc is located
1717

18-
readonly COMMIT_HASH=$(git rev-parse HEAD)
18+
COMMIT_HASH=$(git rev-parse HEAD)
19+
readonly COMMIT_HASH
1920
readonly PUBLISH_RELEASE_DIR="${PUBLISH_DIR}/${SOURCE_BRANCH}"
2021

2122
cleanPublishDir() {
@@ -49,7 +50,7 @@ publishDocs() {
4950
}
5051

5152
_stagingPushDocs() {
52-
if [ -z "$(git status --porcelain=v1)" 2>/dev/null ]; then
53+
if [ -z "$(git status --porcelain=v1 2>/dev/null)" ]; then
5354
echo 'No changes to publish'
5455
return
5556
fi

scripts/ci_scripts/publishJavaArtifacts.sh

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/main/java/org/hyperledger/fabric/gateway/spi/CommitHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* instance state related to events received during its lifetime.
1818
* <p>Implementations may use {@link org.hyperledger.fabric.gateway.Network#addCommitListener(CommitListener, java.util.Collection, String)}
1919
* to identify when specific peers have committed the transaction they are tracking.</p>
20-
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/release-2.2/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandlerFactory.java">SampleCommitHandlerFactory</a>
21-
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/release-2.2/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandler.java">SampleCommitHandler</a>
20+
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/main/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandlerFactory.java">SampleCommitHandlerFactory</a>
21+
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/main/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandler.java">SampleCommitHandler</a>
2222
*/
2323
public interface CommitHandler {
2424
/**

src/main/java/org/hyperledger/fabric/gateway/spi/CommitHandlerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
/**
1212
* Functional interface describing a factory function for constructing {@link CommitHandler} instances.
1313
* <p>Default implementations can be obtained from {@link org.hyperledger.fabric.gateway.DefaultCommitHandlers}.</p>
14-
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/release-2.2/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandlerFactory.java">SampleCommitHandlerFactory</a>
15-
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/release-2.2/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandler.java">SampleCommitHandler</a>
14+
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/main/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandlerFactory.java">SampleCommitHandlerFactory</a>
15+
* @see <a href="https://github.com/hyperledger/fabric-gateway-java/blob/main/src/test/java/org/hyperledger/fabric/gateway/sample/SampleCommitHandler.java">SampleCommitHandler</a>
1616
*/
1717
@FunctionalInterface
1818
public interface CommitHandlerFactory {

0 commit comments

Comments
 (0)