From 1bedad037ace1d4dbfd583b3fe9363c1268db88b Mon Sep 17 00:00:00 2001 From: neworld Date: Tue, 13 Nov 2018 22:50:47 +0200 Subject: [PATCH] Fix failing build due missing binName --- CHANGES.md | 4 ++++ build.gradle.kts | 2 +- samples/build.gradle | 2 +- src/main/kotlin/lt/neworld/gradle/jdeploy/JDeployExtension.kt | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 09fe66d..2177800 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +### v0.5.1 + +- Fix regression due missing binName + ### v0.5.0 - Support custom bin name diff --git a/build.gradle.kts b/build.gradle.kts index a2aa2bb..e4897a9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "lt.neworld.gradle" -version = "0.5.0" +version = "0.5.1" repositories { maven { diff --git a/samples/build.gradle b/samples/build.gradle index dc54e48..61c51e2 100644 --- a/samples/build.gradle +++ b/samples/build.gradle @@ -10,7 +10,7 @@ buildscript { dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath "lt.neworld.gradle:gradle-jdeploy-plugin:0.5.0" + classpath "lt.neworld.gradle:gradle-jdeploy-plugin:0.5.1" } } diff --git a/src/main/kotlin/lt/neworld/gradle/jdeploy/JDeployExtension.kt b/src/main/kotlin/lt/neworld/gradle/jdeploy/JDeployExtension.kt index 8c1b0d5..d5df0a9 100644 --- a/src/main/kotlin/lt/neworld/gradle/jdeploy/JDeployExtension.kt +++ b/src/main/kotlin/lt/neworld/gradle/jdeploy/JDeployExtension.kt @@ -5,6 +5,7 @@ import org.gradle.api.Project import org.gradle.api.tasks.Input import org.gradle.api.tasks.InputFile import org.gradle.api.tasks.Nested +import org.gradle.api.tasks.Optional import org.gradle.kotlin.dsl.invoke import java.io.File @@ -23,7 +24,7 @@ class JDeployExtension(private val project: Project) { var name: String? = null @get:Input var repository: String = "" - @get:Input + @get:[Input Optional] var binName: String? = null var jar: File? = null