Fix nullable javaPackagePrefix used as @Input, resulting in build failure

This commit is contained in:
Sergey Igushkin
2017-08-14 18:58:37 +03:00
parent 718ee01a48
commit bf98e26bc2
@@ -236,9 +236,11 @@ open class KotlinCompile : AbstractKotlinCompile<K2JVMCompilerArguments>(), Kotl
*
* Example: a Java source file with `package com.example.my.package` is located in directory `src/main/java/my/package`.
* Then, for the Kotlin compilation to locate the source file, use package prefix `"com.example"` */
@Input
var javaPackagePrefix: String? = null
@get:Input
internal val javaPackagePrefixInputString get() = javaPackagePrefix ?: ""
internal val pluginOptions = CompilerPluginOptions()
internal var artifactDifferenceRegistryProvider: ArtifactDifferenceRegistryProvider? = null
internal var artifactFile: File? = null