Skip to content

Commit

Permalink
fix: Make changes necessary to publish helidon (#296)
Browse files Browse the repository at this point in the history
Signed-off-by: litt <[email protected]>
Signed-off-by: Jendrik Johannes <[email protected]>
Co-authored-by: Jendrik Johannes <[email protected]>
  • Loading branch information
litt3 and jjohannes authored Oct 2, 2024
1 parent 8c8dba9 commit a2e54fa
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
*
* Licensed 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.
*/

plugins {
id("java-library")
id("com.hedera.pbj.conventions")
}

val maven = publishing.publications.create<MavenPublication>("maven") { from(components["java"]) }

signing.sign(maven)
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ tasks.withType<CloseNexusStagingRepository> {
// The publishing of all components to Maven Central (in this case only 'pbj-runtime') is
// automatically done before close (which is done before release).
dependsOn(":pbj-runtime:publishToSonatype")
dependsOn(":pbj-grpc-helidon:publishToSonatype")
dependsOn(":pbj-grpc-helidon-config:publishToSonatype")
}

tasks.register("release") {
Expand All @@ -52,4 +54,6 @@ tasks.register("release") {
tasks.register("releaseSnapshot") {
group = "release"
dependsOn(":pbj-runtime:publishToSonatype")
dependsOn(":pbj-grpc-helidon:publishToSonatype")
dependsOn(":pbj-grpc-helidon-config:publishToSonatype")
}
2 changes: 1 addition & 1 deletion pbj-core/pbj-grpc-helidon-config/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

plugins { id("com.hedera.pbj.conventions") }
plugins { id("com.hedera.pbj.helidon") }

mainModuleInfo {
annotationProcessor("io.helidon.common.features.processor")
Expand Down
2 changes: 1 addition & 1 deletion pbj-core/pbj-grpc-helidon/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("com.hedera.pbj.conventions")
id("com.hedera.pbj.helidon")
id("com.hedera.pbj.protoc") // protobuf plugin is only used for tests
}

Expand Down

0 comments on commit a2e54fa

Please sign in to comment.