Skip to content
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

feat(build): add implicit_dependency for gradle task build #6229

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chainbase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ test {
}

jacocoTestReport {
dependsOn(processResources) // explicit_dependency
reports {
xml.enabled = true
html.enabled = true
Expand Down
4 changes: 4 additions & 0 deletions framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def binaryRelease(taskName, jarName, mainClass) {
include "/**"
}

// explicit_dependency
dependsOn (project(':actuator').jar, project(':consensus').jar, project(':chainbase').jar,
project(':crypto').jar, project(':common').jar, project(':protocol').jar)

from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
Expand Down
2 changes: 1 addition & 1 deletion plugins/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def binaryRelease(taskName, jarName, mainClass) {
from(sourceSets.main.output) {
include "/**"
}

dependsOn project(':protocol').jar // explicit_dependency
from {
configurations.runtimeClasspath.collect { // https://docs.gradle.org/current/userguide/upgrading_version_6.html#changes_6.3
it.isDirectory() ? it : zipTree(it)
Expand Down
1 change: 1 addition & 0 deletions protocol/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ clean.doFirst {
delete "src/main/java"
}

processResources.dependsOn(generateProto) // explicit_dependency