Skip to content

Commit

Permalink
Merge pull request #106 from hyperledger/masterToMainBranch
Browse files Browse the repository at this point in the history
master to main changes and repo migration fixes
  • Loading branch information
NickSneo authored Apr 12, 2024
2 parents cc224ed + 38e5dd3 commit b7d9e84
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @conor10 @iikirilov
* @conor10 @gtebrean @NickSneo
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
### Why is it needed?
*required*

## Checklist

- [ ] I've read the contribution guidelines.
- [ ] I've added tests (if applicable).
- [ ] I've added a changelog entry if necessary.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]
workflow_dispatch:

jobs:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ name: Publish snapshot
on:
workflow_run:
workflows: [ 'Build' ]
branches: [ master ]
branches: [ main ]
types: [ completed ]

jobs:
publish-snapshot:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_USERNAME: ${{ secrets.OSSRH_WEB3J_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
Expand All @@ -29,8 +30,6 @@ jobs:
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Decrypt secret key
run: openssl aes-256-cbc -K ${{ secrets.GPG_KEY }} -iv ${{ secrets.GPG_IV }} -in web3j.asc.enc -out web3j.asc -d
- name: Publish snapshot
run: ./gradlew publish

7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ jobs:
release:
runs-on: ubuntu-latest
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_USERNAME: ${{ secrets.OSSRH_WEB3J_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
Expand All @@ -36,8 +37,6 @@ jobs:
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Decrypt secret key
run: openssl aes-256-cbc -K ${{ secrets.GPG_KEY }} -iv ${{ secrets.GPG_IV }} -in web3j.asc.enc -out web3j.asc -d
- name: Release name
id: release_name
uses: actions/github-script@v4
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ docs/build

# OS X
.DS_Store
web3j.asc

bin
.classpath
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [4.11.2]() (Upcoming)
# [4.11.3]() (Upcoming)

### Bug Fixes

*

### Features

*
* bump snapshot version to 4.11.3 [#104](https://github.com/hyperledger/web3j-evm/pull/104)

### BREAKING CHANGES

*
* Master branch rename to main and repo migration fixes [#106](https://github.com/hyperledger/web3j-evm/pull/106)

# [4.11.2](https://github.com/web3j/web3j-evm/releases/tag/v4.11.2) (2024-03-27)

Expand All @@ -25,7 +25,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

### Features

* Web3J upgrade and Bump version [#104](https://github.com/web3j/web3j-evm/pull/104)
* Web3J upgrade and Bump version [#103](https://github.com/web3j/web3j-evm/pull/103)

### BREAKING CHANGES

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ apply {
'junit'
].each { buildScript ->
download {
src "https://raw.githubusercontent.com/web3j/build-tools/master/gradle/$buildScript/build.gradle"
src "https://raw.githubusercontent.com/hyperledger/web3j-build-tools/main/gradle/$buildScript/build.gradle"
dest "$rootDir/gradle/$buildScript/build.gradle"
overwrite false
quiet true
Expand Down
13 changes: 6 additions & 7 deletions gradle/publish/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ publishing {
slug = project.rootProjectOverride
}

url = "https://github.com/web3j/$slug"
connection = "scm:https://github.com/web3j/${slug}.git"
developerConnection = "scm:git://github.com/web3j/${slug}.git"
url = "https://github.com/hyperledger/$slug"
connection = "scm:https://github.com/hyperledger/${slug}.git"
developerConnection = "scm:git://github.com/hyperledger/${slug}.git"
}

developers {
Expand Down Expand Up @@ -84,8 +84,7 @@ nexusStaging {

signing {
sign publishing.publications.maven
def signingKey = new File("$rootDir/web3j.asc")
if (signingKey.exists()) {
useInMemoryPgpKeys(signingKey.getText('UTF-8'), System.getenv('GPG_PASSPHRASE'))
}
def gpgSecretKey = System.getenv('OSSRH_GPG_SECRET_KEY')
def password = System.getenv('OSSRH_GPG_SECRET_KEY_PASSWORD')
useInMemoryPgpKeys(gpgSecretKey, password)
}
4 changes: 2 additions & 2 deletions gradle/spotless/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ apply plugin: 'com.diffplug.gradle.spotless'
apply plugin: "de.undercouch.download"

task downloadJavaLicense(type: Download) {
src 'https://raw.githubusercontent.com/web3j/build-tools/master/gradle/spotless/java.license'
src 'https://raw.githubusercontent.com/hyperledger/web3j-build-tools/main/gradle/spotless/java.license'
dest new File("$rootDir/gradle/spotless",'java.license')
quiet true
onlyIfModified true
}


task downloadFormatterProperties(type: Download) {
src 'https://raw.githubusercontent.com/web3j/build-tools/master/gradle/spotless/formatter.properties'
src 'https://raw.githubusercontent.com/hyperledger/web3j-build-tools/main/gradle/spotless/formatter.properties'
dest new File("$rootDir/gradle/spotless",'formatter.properties')
quiet true
onlyIfModified true
Expand Down
Binary file removed web3j.asc.enc
Binary file not shown.

0 comments on commit b7d9e84

Please sign in to comment.