Skip to content

Commit

Permalink
Merge pull request #1473 from onflow/cicd-jvm-protobuf
Browse files Browse the repository at this point in the history
Update task dependency in build.gradle
  • Loading branch information
lealobanov authored Jun 13, 2024
2 parents 688f81a + b21b48a commit dbaffdf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions protobuf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ java {
targetCompatibility = JavaVersion.VERSION_20
}


tasks.named("generateProto") {
dependsOn(tasks.named("processResources"))
dependsOn(tasks.named("extractIncludeTestProto"))
Expand All @@ -63,6 +64,12 @@ tasks.whenTaskAdded {
}
}

afterEvaluate {
tasks.named("generateMetadataFileForMavenPublication") {
dependsOn(tasks.findByName("plainJavadocJar"))
}
}

tasks {
mavenPublishing {
publishToMavenCentral(SonatypeHost.DEFAULT, true)
Expand Down

0 comments on commit dbaffdf

Please sign in to comment.