Update to gradle 4.7, fix nullability issue in buildSrc
JavaExec args list is nullable now, so use orEmpty before copying it.
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
37124e0c0d
commit
0065a74c7e
@@ -39,7 +39,7 @@ fun Project.smartJavaExec(configure: JavaExec.() -> Unit) = task<JavaExec> javaE
|
||||
main = "-jar"
|
||||
|
||||
classpath = project.files()
|
||||
val copyArgs = mutableListOf<Any?>().also { it.addAll(args) }
|
||||
val copyArgs = args.orEmpty().toList()
|
||||
args(jarTask.outputs.files.singleFile)
|
||||
args(copyArgs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user