diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 2664621..beb42c7 100644 --- a/build.gradle +++ b/build.gradle @@ -146,11 +146,16 @@ subprojects { envFile.write(entry.value as String) } } + activatorTask.inputs.property('extension', activatorExtension) + activatorTask.onlyIf { + !(activatorExtension.env.isEmpty() && activatorExtension.bin.isEmpty()) + } project.afterEvaluate { project.extensions.getByName('ospackage').from(new File(activatorDir, 'env')) { into("/opt/activator/${project.name}/env") fileMode = 0444 } + activatorExtension.env.each { activatorTask.outputs.file(new File(activatorDir, "env/${it.key}")) } |