forked from apache/incubator-tuweni
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce argument allocations for checkArgument to reduce gc pressure. (#…
…104) * catch any exception Signed-off-by: Sally MacFarlane <[email protected]> * GH Publish (#4) * build - Fix NOTICE * build - publish to GH Packages * build - GH action to publish to GH packages * build - Update check notice * Update .github/workflows/publish.yml Co-authored-by: Sally MacFarlane <[email protected]> * build - Update groupId --------- Signed-off-by: Sally MacFarlane <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> * allocate memory explicitly for ref tests task (#6) allocate more memory for ref tests task Signed-off-by: Sally MacFarlane <[email protected]> * Memory ref tests (#7) * allocate more memory for ref tests task --------- Signed-off-by: Sally MacFarlane <[email protected]> * change log level (#1) Co-authored-by: Karim TAAM <[email protected]> * Reduce argument allocations for checkArgument to reduce gc pressure. * spotless changes. * Update GPG key (#11) Existing gpg key has been expired and build fails. New key has been generated and updated. New key expires on 2026-10-14 Signed-off-by: Chaminda Divitotawela <[email protected]> --------- Signed-off-by: Sally MacFarlane <[email protected]> Signed-off-by: Chaminda Divitotawela <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> Co-authored-by: Usman Saleem <[email protected]> Co-authored-by: Karim TAAM <[email protected]> Co-authored-by: Chaminda Divitotawela <[email protected]>
- Loading branch information
1 parent
aeeb06b
commit 8e7756e
Showing
6 changed files
with
234 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# Licensed to the Consensys Software Inc under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This is adapted from https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-gradle | ||
|
||
name: Publish package to GitHub Packages | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: tmio/tuweni-build:1.2 | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 | ||
|
||
- name: Publish package | ||
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -323,6 +323,7 @@ allprojects { | |
publishing { | ||
repositories { | ||
maven { | ||
name = "OSSRH" | ||
def isRelease = buildVersion.endsWith('SNAPSHOT') | ||
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2" | ||
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots" | ||
|
@@ -355,14 +356,23 @@ allprojects { | |
} | ||
} | ||
} | ||
|
||
maven { | ||
name = "GitHubPackages" | ||
url = "https://maven.pkg.github.com/consensys/tuweni" | ||
credentials { | ||
username = System.getenv('GITHUB_ACTOR') | ||
password = System.getenv('GITHUB_TOKEN') | ||
} | ||
} | ||
} | ||
publications { | ||
MavenDeployment(MavenPublication) { publication -> | ||
if (project != rootProject) { | ||
from components.java | ||
artifact sourcesJar { classifier 'sources' } | ||
} | ||
groupId 'io.tmio' | ||
groupId 'io.consensys.protocols' | ||
artifactId 'tuweni-' + project.name | ||
version project.version | ||
|
||
|
@@ -378,17 +388,17 @@ allprojects { | |
pom { | ||
name = project.name | ||
afterEvaluate { description = project.description } | ||
url = 'https://github.com/tmio/tuweni' | ||
url = 'https://github.com/consensys/tuweni' | ||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
scm { | ||
connection = 'scm:https://github.com/tmio/tuweni.git' | ||
developerConnection = 'scm:[email protected]:tmio/tuweni.git' | ||
url = 'https://github.com/tmio/tuweni' | ||
connection = 'scm:https://github.com/consensys/tuweni.git' | ||
developerConnection = 'scm:[email protected]:consensys/tuweni.git' | ||
url = 'https://github.com/consensys/tuweni' | ||
} | ||
developers { | ||
developer { | ||
|
@@ -400,7 +410,7 @@ allprojects { | |
} | ||
issueManagement { | ||
system = "github" | ||
url = "https://www.github.com/tmio/tuweni/issues" | ||
url = "https://www.github.com/consensys/tuweni/issues" | ||
} | ||
} | ||
|
||
|
@@ -415,7 +425,7 @@ allprojects { | |
def addDependencyNode = { dep, optional, scope -> | ||
def dependencyNode = dependenciesNode.appendNode('dependency') | ||
if (dep instanceof ProjectDependency) { | ||
dependencyNode.appendNode('groupId', 'io.tmio') | ||
dependencyNode.appendNode('groupId', 'io.consensys') | ||
dependencyNode.appendNode('artifactId', rootProject.name + '-' + dep.name) | ||
dependencyNode.appendNode('version', dep.version) | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.