Skip to content

Commit 0d0c928

Browse files
committed
Update "master" branch references to "main"
Update "master" branch references to "main". Signed-off-by: David Enyeart <[email protected]>
1 parent aa6eded commit 0d0c928

File tree

10 files changed

+41
-41
lines changed

10 files changed

+41
-41
lines changed

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository:
77
description: Hyperledger Fabric Contract and Chaincode implementation for Java
88
https://wiki.hyperledger.org/display/fabric
99
homepage: https://jira.hyperledger.org/issues/?jql=project+%3D+FAB+AND+component+%3D+fabric-chaincode-java
10-
default_branch: master
10+
default_branch: main
1111
has_downloads: true
1212
has_issues: false
1313
has_projects: false

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Make sure you have the support of the Hyperledger Fabric community before invest
2828

2929
We use our own forks and [Github Flow](https://guides.github.com/introduction/flow/index.html) to deliver changes to the code. Follow these steps to deliver your first pull request:
3030

31-
1. [Fork the repository](https://guides.github.com/activities/forking/#fork) and create a new branch from `master`.
31+
1. [Fork the repository](https://guides.github.com/activities/forking/#fork) and create a new branch from `main`.
3232
2. If you've added code that should be tested, add tests!
3333
3. If you've added any new features or made breaking changes, update the documentation.
3434
4. Ensure all the tests pass.
@@ -42,11 +42,11 @@ Please to try to be consistent with the rest of the code and conform to checksty
4242

4343
## Code of Conduct Guidelines <a name="conduct"></a>
4444

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

4747
## Maintainers <a name="maintainers"></a>
4848

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

5151
## Hyperledger Fabric
5252

MAINTAINERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ Retired Maintainers
2222
| Yacov Manevich | yacovm | yacovm | [email protected] |
2323

2424

25-
Also: Please see the [Release Manager section](https://github.com/hyperledger/fabric/blob/master/MAINTAINERS.md)
25+
Also: Please see the [Release Manager section](https://github.com/hyperledger/fabric/blob/main/MAINTAINERS.md)
2626

2727
<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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hyperledger Fabric Chaincode Java
22

3-
[![Build Status](https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_apis/build/status/Fabric-Chaincode-Java?branchName=master)](https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_build/latest?definitionId=39&branchName=master)
3+
[![Build Status](https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_apis/build/status/Fabric-Chaincode-Java?branchName=main)](https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_build/latest?definitionId=39&branchName=main)
44
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.hyperledger.fabric-chaincode-java/fabric-chaincode-shim/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.hyperledger.fabric-chaincode-java/fabric-chaincode-shim)
55
[![Rocket.Chat](https://chat.hyperledger.org/images/join-chat.svg)](https://chat.hyperledger.org/channel/fabric-java-chaincode)
66

@@ -45,10 +45,10 @@ The following technical examples are in this repository. Please see the tutorial
4545
- **fabric-chaincode-example-sacc** - Contains an example java chaincode gradle project that includes sample chaincode and basic gradle build instructions.
4646
- **fabric-chaincode-example-sbe** - Contains an example java chaincode gradle project that includes state based endorsement
4747

48-
## 'dev' master branch builds
48+
## 'dev' main branch builds
4949

50-
These 'dev' drivers are built from the master branch only, and have a version format including the date for example `2.3.1.dev.20210303`.
51-
They are published to Artifactory. These can be accessed via the repository at
50+
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`.
51+
They are published to Artifactory. These can be accessed via the repository at
5252
```
5353
maven {
5454
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"

RELEASING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following tasks are required before releasing:
2020
- Update test, sample, and docs files to match the new version
2121
- Create a new release notes file
2222
- Update the `CHANGELOG.md` file
23-
23+
2424
The `changelog.sh` script in `scripts` will prepopulate the changelog but you must check and edit the file manually afterwards as required
2525

2626
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!
@@ -60,17 +60,17 @@ See the [Bump version to 2.2.1](https://github.com/hyperledger/fabric-chaincode-
6060

6161
## Interim Build Publishing
6262

63-
The nightly Azure Pipeline Builds will also publish the 'dev' drivers to Artifactory. These can be accessed via the repository at
63+
The nightly Azure Pipeline Builds will also publish the 'dev' drivers to Artifactory. These can be accessed via the repository at
6464
```
6565
maven {
6666
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
6767
}
6868
```
6969

70-
These 'dev' drivers are built from the master 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+
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
7171

7272
```
7373
dependencies {
7474
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.3.1.dev.+'
7575
}
76-
```
76+
```

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ apply plugin: 'eclipse-wtp'
99
version = '2.3.1'
1010

1111

12-
// If the nightly property is set, then this is the scheduled master
12+
// If the nightly property is set, then this is the scheduled main
1313
// build - and we should publish this to artifactory
14-
//
14+
//
1515
// Use the .dev.<number> format to match Maven convention
1616
if (properties.containsKey('NIGHTLY')) {
1717
version = version + '.dev.' + getDate()
@@ -36,7 +36,7 @@ subprojects {
3636

3737
group = 'org.hyperledger.fabric-chaincode-java'
3838
version = rootProject.version
39-
39+
4040

4141
sourceCompatibility = 1.8
4242
targetCompatibility = 1.8
@@ -58,7 +58,7 @@ subprojects {
5858

5959
if (!it.name.equals('fabric-chaincode-protos')) {
6060
tasks.withType(JavaCompile) {
61-
options.compilerArgs << "-Xlint:all,-try"
61+
options.compilerArgs << "-Xlint:all,-try"
6262
}
6363
}
6464

@@ -77,4 +77,4 @@ def getDate() {
7777
def date = new Date()
7878
def formattedDate = date.format('yyyyMMdd')
7979
return formattedDate
80-
}
80+
}

ci/azure-pipelines.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ schedules:
1313
displayName: "Chaincode Java Nightly Driver"
1414
branches:
1515
include:
16-
- master
16+
- main
1717

1818
trigger:
1919
branches:
2020
include:
21-
- "master"
21+
- "main"
2222
tags:
2323
include:
2424
- "*"
@@ -60,7 +60,7 @@ stages:
6060
inputs:
6161
workingDirectory: ""
6262
gradleWrapperFile: "gradlew"
63-
gradleOptions: "-Xmx3072m"
63+
gradleOptions: "-Xmx3072m"
6464
javaHomeOption: "JDKVersion"
6565
jdkVersionOption: "1.8"
6666
jdkArchitectureOption: "x64"
@@ -69,19 +69,19 @@ stages:
6969
testResultsFiles: "$(System.DefaultWorkingDirectory)/**/TEST-*.xml"
7070
tasks: "build"
7171
- task: PublishBuildArtifacts@1
72-
condition: or(succeeded(), failed())
72+
condition: or(succeeded(), failed())
7373
inputs:
7474
pathToPublish: fabric-chaincode-shim/build/reports/checkstyle/
7575
artifactName: checkstylereport
7676
displayName: 'Checkstyle'
7777
continueOnError: true
7878
- task: PublishBuildArtifacts@1
79-
condition: or(succeeded(), failed())
79+
condition: or(succeeded(), failed())
8080
inputs:
8181
pathToPublish: fabric-chaincode-shim/build/reports/jacoco/
8282
artifactName: coveragereport
8383
displayName: 'JaCoCo Coverage'
84-
continueOnError: true
84+
continueOnError: true
8585
- task: PublishTestResults@2
8686
inputs:
8787
testResultsFormat: 'JUnit'
@@ -104,28 +104,28 @@ stages:
104104
- task: PublishCodeCoverageResults@1
105105
inputs:
106106
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/fabric-chaincode-shim/build/reports/jacoco/test/jacocoTestReport.xml"
107-
# Copy the built artifacts to the staging directory, tgz, and the docker image
107+
# Copy the built artifacts to the staging directory, tgz, and the docker image
108108
- script: |
109109
set -ev
110110
./gradlew publishToMavenLocal
111-
tar -zcvf localmaven.tgz ${HOME}/.m2/repository/org/hyperledger
111+
tar -zcvf localmaven.tgz ${HOME}/.m2/repository/org/hyperledger
112112
docker image save hyperledger/fabric-javaenv | gzip > $(Build.ArtifactStagingDirectory)/fabric-javaenv.tar.gz
113-
displayName: 'Package tgz and docker image'
114-
- task: PublishBuildArtifacts@1
113+
displayName: 'Package tgz and docker image'
114+
- task: PublishBuildArtifacts@1
115115
inputs:
116116
pathToPublish: localmaven.tgz
117117
artifactName: java-tgz
118-
- task: PublishBuildArtifacts@1
118+
- task: PublishBuildArtifacts@1
119119
inputs:
120120
pathToPublish: $(Build.ArtifactStagingDirectory)/fabric-javaenv.tar.gz
121121
artifactName: javaenv-docker-image
122122

123123
- job: javadoc
124124
dependsOn: displayenv
125125
variables:
126-
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
127-
javadoc_release: master
128-
${{ if ne(variables['Build.SourceBranch'], 'refs/heads/master') }}:
126+
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
127+
javadoc_release: main
128+
${{ if ne(variables['Build.SourceBranch'], 'refs/heads/main') }}:
129129
javadoc_release: $[format('release-{0}',dependencies.displayenv.outputs['BuildData.MINOR_PACKAGE_VERSION'])]
130130
steps:
131131
- script: ./gradlew javadoc
@@ -136,7 +136,7 @@ stages:
136136
cp -r docs/* gh-pages
137137
fi
138138
displayName: 'Copy gh-pages doc'
139-
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
139+
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
140140
- script: |
141141
git fetch origin
142142
git checkout -b gh-pages origin/gh-pages
@@ -146,7 +146,7 @@ stages:
146146
147147
# if the gh-pages is present from the previous script, then copy across the files across.
148148
if [ -d gh-pages ]; then
149-
find . -maxdepth 1 ! \( -name [.]* -o -name 'gh-pages' -o -name 'master' -o -name 'release-*' \) -exec rm -rf {} \;
149+
find . -maxdepth 1 ! \( -name [.]* -o -name 'gh-pages' -o -name 'main' -o -name 'release-*' \) -exec rm -rf {} \;
150150
cp -r gh-pages/* .
151151
rm -rf gh-pages
152152
fi
@@ -174,7 +174,7 @@ stages:
174174
path: $(Build.SourcesDirectory)/build
175175
- script: |
176176
wget -qO "$PWD/manifest-tool" https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64
177-
chmod +x ./manifest-tool
177+
chmod +x ./manifest-tool
178178
179179
docker image load --input build/fabric-javaenv.tar.gz
180180
docker images
@@ -185,7 +185,7 @@ stages:
185185
# push javaenv to repository
186186
docker push hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)
187187
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)" --target "hyperledger/fabric-javaenv:$(BuildData.PACKAGE_VERSION)"
188-
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)" --target "hyperledger/fabric-javaenv:$(BuildData.MINOR_PACKAGE_VERSION)"
188+
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-javaenv:amd64-$(BuildData.PACKAGE_VERSION)" --target "hyperledger/fabric-javaenv:$(BuildData.MINOR_PACKAGE_VERSION)"
189189
env:
190190
DOCKER_REGISTRY_USERNAME: $(DockerHub-Username)
191191
DOCKER_REGISTRY_PASSWORD: $(DockerHub-Password)
@@ -200,7 +200,7 @@ stages:
200200
./gradlew -Psigning.keyId=${SIGNING_ID} -Psigning.password=${SIGNING_PASSWORD} -Psigning.secretKeyRingFile=${KEYRING_FILE} -PossrhUsername=${OSSRH_USER} -PossrhPassword=${OSSRH_PASSWORD} uploadArchives
201201
env:
202202
SIGNING_ID: $(JAR-Signing-Id)
203-
SIGNING_PASSWORD: $(JAR-Signing-Password)
203+
SIGNING_PASSWORD: $(JAR-Signing-Password)
204204
KEYRING_FILE: $(keyring.secureFilePath)
205205
OSSRH_USER: $(OSSRH-User)
206206
OSSRH_PASSWORD: $(OSSRH-Password)
@@ -220,7 +220,7 @@ stages:
220220
./gradlew -PNIGHTLY=true -Psigning.keyId=${SIGNING_ID} -Psigning.password=${SIGNING_PASSWORD} -Psigning.secretKeyRingFile=${KEYRING_FILE} -PartifactoryUsername=${ARTIFACTORY_USER} -PartifactoryhPassword=${ARTIFACTORY_PASSWORD} uploadArchives
221221
env:
222222
SIGNING_ID: $(JAR-Signing-Id)
223-
SIGNING_PASSWORD: $(JAR-Signing-Password)
223+
SIGNING_PASSWORD: $(JAR-Signing-Password)
224224
KEYRING_FILE: $(keyring.secureFilePath)
225225
ARTIFACTORY_USER: $(ARTIFACTORY-User)
226226
ARTIFACTORY_PASSWORD: $(ARTIFACTORY-Password)

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
theme: minima
22
title: "fabric-chaincode-java"
33
releases:
4-
- master
4+
- main
55
- release-1.4
66
- release-2.2

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Check the [release notes](https://github.com/hyperledger/fabric-chaincode-java/r
4242

4343
## Compatibility
4444

45-
For details on what versions of Java and Hyperledger Fabric can be used please see the [compatibility document](https://github.com/hyperledger/fabric-chaincode-java/blob/master/COMPATIBILITY.md).
45+
For details on what versions of Java and Hyperledger Fabric can be used please see the [compatibility document](https://github.com/hyperledger/fabric-chaincode-java/blob/main/COMPATIBILITY.md).
4646

4747
## Samples
4848

fabric-chaincode-protos/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
}
1818

1919
// Fabric branch to download proto files from
20-
def fabricBranch = 'master'
20+
def fabricBranch = 'main'
2121
// Fabric Github repository link
2222
def fabricRepo = 'https://raw.githubusercontent.com/hyperledger/fabric-protos'
2323
def protosDir = 'src/main/protos'

0 commit comments

Comments
 (0)