Skip to content

Commit e9ace08

Browse files
committed
defaults; version bump
1 parent baa9139 commit e9ace08

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ kotlin {
3232
}
3333

3434
group = "app.opendocument"
35-
version = "0.9.4"
35+
version = "0.9.5"
3636

3737
gradlePlugin {
3838
website = "https://github.com/opendocument-app/ConanAndroidGradlePlugin"

src/main/kotlin/app/opendocument/ConanInstallTask.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)