Skip to content

Commit

Permalink
ci: fix gradle publish failures in release-0.52 for hedera.com.evm (#…
Browse files Browse the repository at this point in the history
…14546)

Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
  • Loading branch information
rbarkerSL committed Aug 1, 2024
1 parent 9d4b749 commit e9c1b4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ plugins {
id("com.hedera.gradle.maven-publish")
}

// Publishing tasks are only enabled if we publish to the matching group.
// Otherwise, Nexus configuration and credentials do not fit.
val publishingPackageGroup = providers.gradleProperty("publishingPackageGroup").getOrElse("")

tasks.withType<PublishToMavenRepository>().configureEach {
enabled = publishingPackageGroup == "com.hedera"
}

publishing {
publications {
named<MavenPublication>("maven") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ javaModuleDependencies {
moduleNamePrefixToGroup.put("com.hedera.node.", "com.hedera.hashgraph")
moduleNamePrefixToGroup.put("com.hedera.storage.", "com.hedera.storage.blocknode")
moduleNameToGA.put("com.hedera.evm", "com.hedera.evm:hedera-evm")
moduleNameToGA.put("com.hedera.evm.impl", "com.hedera:hedera-evm-impl")
moduleNameToGA.put("com.hedera.evm.impl", "com.hedera.evm:hedera-evm-impl")
}

0 comments on commit e9c1b4f

Please sign in to comment.