-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: publish to OSSHR repository #188
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
dc8fd38
feat: add a beta branch and rust-init installer to the release flow
yshyn-iohk 65972ac
chore(release): cut apollo version 1.4.0-beta.1 # [1.4.0-beta.1](http…
hyperledger-bot 4ad87a6
chore: add --debug to the semantic-release
yshyn-iohk c730bf2
Merge remote-tracking branch 'origin/beta' into beta
yshyn-iohk b85edb7
feat: add --info to the CI
yshyn-iohk 23e5be8
feat: rollback oss.sonatype url and upgrade a gradle-release-plugin t…
yshyn-iohk f86c4a2
chore(release): cut apollo version 1.4.0-beta.2 # [1.4.0-beta.2](http…
hyperledger-bot 8dbd048
feat: add --info to the CI
yshyn-iohk 1fa8205
feat: add --info to the CI
yshyn-iohk 7a23cc9
Merge remote-tracking branch 'origin/beta' into beta
yshyn-iohk 56824ec
feat: replace maven section with nexusPublishing
yshyn-iohk b9c27e7
chore(release): cut apollo version 1.4.0-beta.3 # [1.4.0-beta.3](http…
hyperledger-bot 2e1ee7d
feat: publish update
yshyn-iohk 31f0161
feat: update the publishing info
yshyn-iohk 9303d4c
Merge remote-tracking branch 'origin/beta' into beta
yshyn-iohk 9d06272
chore(release): cut apollo version 1.4.0-beta.4 # [1.4.0-beta.4](http…
hyperledger-bot 223fb03
Merge remote-tracking branch 'refs/remotes/origin/main' into beta
yshyn-iohk 06e7e89
feat: cleanup the branch and prepare for PR
yshyn-iohk 460c07d
chore: fix build.gradle.kts file after merging
yshyn-iohk e656c53
fix: formatting in the build.gradle.kts file
yshyn-iohk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ plugins { | |
id("org.jlleitschuh.gradle.ktlint") version "11.6.1" | ||
id("maven-publish") | ||
id("org.jetbrains.kotlinx.kover") version "0.7.5" | ||
id("io.github.gradle-nexus.publish-plugin") version "2.0.0-rc-1" | ||
id("io.github.gradle-nexus.publish-plugin") version "2.0.0" | ||
id("signing") | ||
id("com.android.library") version "8.1.4" apply false | ||
} | ||
|
@@ -35,111 +35,102 @@ allprojects { | |
apply(plugin = "org.gradle.maven-publish") | ||
apply(plugin = "org.gradle.signing") | ||
|
||
// Allowed projects to publish to maven | ||
val allowedProjectsToPublish = listOf("apollo") | ||
if (allowedProjectsToPublish.contains(project.name) && project.name.contains("androidDebug")) { | ||
publishing { | ||
repositories { | ||
maven { | ||
name = "OSSRH" | ||
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = project.findProperty("sonatypeUsername") as String? ?: System.getenv("OSSRH_USERNAME") | ||
password = project.findProperty("sonatypePassword") as String? ?: System.getenv("OSSRH_TOKEN") | ||
publishing { | ||
publications.withType<MavenPublication> { | ||
groupId = publishedMavenId | ||
artifactId = project.name | ||
version = project.version.toString() | ||
pom { | ||
name.set("Identus Apollo") | ||
description.set("Collection of the cryptographic methods used all around Identus platform") | ||
url.set("https://docs.atalaprism.io/") | ||
organization { | ||
name.set("Hyperledger") | ||
url.set("https://www.hyperledger.org/") | ||
} | ||
issueManagement { | ||
system.set("Github") | ||
url.set("https://github.com/hyperledger/identus-apollo") | ||
} | ||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
} | ||
publications { | ||
withType<MavenPublication> { | ||
groupId = publishedMavenId | ||
artifactId = project.name | ||
version = project.version.toString() | ||
pom { | ||
name.set("Identus Apollo") | ||
description.set("Collection of the cryptographic methods used all around Identus platform") | ||
url.set("https://docs.atalaprism.io/") | ||
organization { | ||
name.set("IOG") | ||
url.set("https://iog.io/") | ||
} | ||
issueManagement { | ||
system.set("Github") | ||
url.set("https://github.com/hyperledger/identus-apollo") | ||
} | ||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("hamada147") | ||
name.set("Ahmed Moussa") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
url.set("https://github.com/hamada147") | ||
} | ||
developer { | ||
id.set("amagyar-iohk") | ||
name.set("Allain Magyar") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("qc") | ||
} | ||
developer { | ||
id.set("antonbaliasnikov") | ||
name.set("Anton Baliasnikov") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("qc") | ||
} | ||
developer { | ||
id.set("elribonazo") | ||
name.set("Javier Ribó") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
developer { | ||
id.set("goncalo-frade-iohk") | ||
name.set("Gonçalo Frade") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
developer { | ||
id.set("curtis-h") | ||
name.set("Curtis Harding") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
developer { | ||
id.set("cristianIOHK") | ||
name.set("Cristian Gonzalez") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:git://[email protected]/hyperledger/identus-apollo.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/hyperledger/identus-apollo.git") | ||
url.set("https://github.com/hyperledger/identus-apollo") | ||
} | ||
developers { | ||
developer { | ||
id.set("hamada147") | ||
name.set("Ahmed Moussa") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
url.set("https://github.com/hamada147") | ||
} | ||
|
||
signing { | ||
useInMemoryPgpKeys( | ||
project.findProperty("signing.signingSecretKey") as String? ?: System.getenv("OSSRH_GPG_SECRET_KEY"), | ||
project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("OSSRH_GPG_SECRET_KEY_PASSWORD") | ||
) | ||
sign(this@withType) | ||
developer { | ||
id.set("amagyar-iohk") | ||
name.set("Allain Magyar") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("qc") | ||
} | ||
developer { | ||
id.set("antonbaliasnikov") | ||
name.set("Anton Baliasnikov") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("qc") | ||
} | ||
developer { | ||
id.set("elribonazo") | ||
name.set("Javier Ribó") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
developer { | ||
id.set("goncalo-frade-iohk") | ||
name.set("Gonçalo Frade") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
developer { | ||
id.set("curtis-h") | ||
name.set("Curtis Harding") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
developer { | ||
id.set("cristianIOHK") | ||
name.set("Cristian Gonzalez") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
developer { | ||
id.set("yshyn-iohk") | ||
name.set("Yurii Shynbuiev") | ||
email.set("[email protected]") | ||
organization.set("IOG") | ||
roles.add("developer") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:git://[email protected]/hyperledger/identus-apollo.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/hyperledger/identus-apollo.git") | ||
url.set("https://github.com/hyperledger/identus-apollo") | ||
} | ||
} | ||
|
||
signing { | ||
useInMemoryPgpKeys( | ||
project.findProperty("signing.signingSecretKey") as String? ?: System.getenv("OSSRH_GPG_SECRET_KEY"), | ||
project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("OSSRH_GPG_SECRET_KEY_PASSWORD") | ||
) | ||
sign(this@withType) | ||
} | ||
} | ||
} | ||
} | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait
why this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for asking.
For some reason, the release flow fails at the Post Install Task
For instance, here: https://github.com/hyperledger/identus-apollo/actions/runs/10279883067
The entire release fails even if the packages are published and the
chore
commit is pushed.I could not find a solution for this now except to add
continue-on-error
to thePost Install Java 17
task.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#189 for tracking