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:
Ilya Gorbunov
2018-05-04 06:18:25 +03:00
committed by Vyacheslav Gerasimov
parent 37124e0c0d
commit 0065a74c7e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists