mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
ENT-4652: Tighten Groovy code for writing Cordapp-Dependencies.
This commit is contained in:
parent
117108f456
commit
d419faa185
@ -63,10 +63,13 @@ dependencies {
|
||||
def cordappDependencies = file("${sourceSets['main'].output.resourcesDir}/META-INF/Cordapp-Dependencies")
|
||||
task generateDependencies {
|
||||
dependsOn project(':finance:contracts').tasks.jar
|
||||
inputs.files(configurations.cordapp)
|
||||
outputs.files(cordappDependencies)
|
||||
doLast {
|
||||
configurations.cordapp.forEach { cordapp ->
|
||||
cordappDependencies << sha256(cordapp) << System.lineSeparator()
|
||||
cordappDependencies.newWriter().withWriter { writer ->
|
||||
configurations.cordapp.forEach { cordapp ->
|
||||
writer << sha256(cordapp) << System.lineSeparator()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user