version '1.0' ospackage { into "/opt/${project.name}" from files('resources') } tasks.getByName('createActivator').doFirst { new File("resources/bin").listFiles().each { activator.bin[it.name] = "/opt/${project.name}/bin/${it.name}" } }