File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/main/kotlin/app/opendocument Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ kotlin {
3232}
3333
3434group = " app.opendocument"
35- version = " 0.9.4 "
35+ version = " 0.9.5 "
3636
3737gradlePlugin {
3838 website = " https://github.com/opendocument-app/ConanAndroidGradlePlugin"
Original file line number Diff line number Diff line change @@ -49,16 +49,12 @@ abstract class ConanInstallTask : Exec() {
4949 @get:Input
5050 abstract val deployer: Property <String ?>
5151
52- @get:Input
53- abstract val deployerFolder: Property <String ?>
54-
5552 init {
5653 profile.convention(" default" )
5754 buildProfile.convention(" default" )
5855 conanfile.convention(" ." )
5956 conanExecutable.convention(" conan" )
6057 deployer.convention(null as String? )
61- deployerFolder.convention(null as String? )
6258 }
6359
6460 @get:OutputDirectory
@@ -67,6 +63,9 @@ abstract class ConanInstallTask : Exec() {
6763 @get:OutputFile
6864 val conanToolchainFile: Provider <RegularFile > = arch.map { project.layout.buildDirectory.get().file(" conan/$it /conan_toolchain.cmake" ) }
6965
66+ @get:OutputDirectory
67+ val deployerFolder: Property <String > = arch.map { project.layout.buildDirectory.get().dir(" conan/$it /assets" ) }
68+
7069 override fun exec () {
7170 val args = mutableListOf (
7271 conanExecutable.get(),
@@ -78,8 +77,10 @@ abstract class ConanInstallTask : Exec() {
7877 " --settings:host" , " arch=${arch.get()} "
7978 )
8079
81- deployer.getOrNull()?.let { args.add(" --deployer=$it " ) }
82- deployerFolder.getOrNull()?.let { args.add(" --deployer-folder=$it " ) }
80+ if (deployer.isPresent()) {
81+ args.add(" --deployer=${deployer.get()} " )
82+ args.add(" --deployer-folder=${deployerFolder.get()} " )
83+ }
8384
8485 commandLine(args)
8586
You can’t perform that action at this time.
0 commit comments