Build: introduce javaPluginConvention extension on project

`ExtensionAware.the<T>()` introduced in gradle 4.7 made existing calls `the<JavaPluginConvention>()` invalid (on wrong receiver)
This commit is contained in:
Vyacheslav Gerasimov
2018-06-09 20:43:16 +03:00
parent 94c636adc3
commit 992a31af88
34 changed files with 52 additions and 50 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ testsJar()
val testForWebDemo by task<Test> {
include("**/*JavaToKotlinConverterForWebDemoTestGenerated*")
classpath = the<JavaPluginConvention>().sourceSets["test"].runtimeClasspath
classpath = javaPluginConvention().sourceSets["test"].runtimeClasspath
workingDir = rootDir
}
val cleanTestForWebDemo by tasks
+1 -1
View File
@@ -58,7 +58,7 @@ testsJar()
val testForWebDemo by task<Test> {
include("**/*JavaToKotlinConverterForWebDemoTestGenerated*")
classpath = the<JavaPluginConvention>().sourceSets["test"].runtimeClasspath
classpath = javaPluginConvention().sourceSets["test"].runtimeClasspath
workingDir = rootDir
}
val cleanTestForWebDemo by tasks
+1 -1
View File
@@ -59,7 +59,7 @@ testsJar()
val testForWebDemo by task<Test> {
include("**/*JavaToKotlinConverterForWebDemoTestGenerated*")
classpath = the<JavaPluginConvention>().sourceSets["test"].runtimeClasspath
classpath = javaPluginConvention().sourceSets["test"].runtimeClasspath
workingDir = rootDir
}
val cleanTestForWebDemo by tasks
+1 -1
View File
@@ -60,7 +60,7 @@ testsJar()
val testForWebDemo by task<Test> {
include("**/*JavaToKotlinConverterForWebDemoTestGenerated*")
classpath = the<JavaPluginConvention>().sourceSets["test"].runtimeClasspath
classpath = javaPluginConvention().sourceSets["test"].runtimeClasspath
workingDir = rootDir
}
val cleanTestForWebDemo by tasks