mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Merge pull request #5960 from corda/chrisr3-groovy-fix
ENT-4652: Tighten Groovy code for writing META-INF/Cordapp-Dependencies.
This commit is contained in:
commit
014a03575e
@ -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…
Reference in New Issue
Block a user