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:
@@ -37,7 +37,7 @@ val compilerModules: Array<String> by rootProject.extra
|
||||
compilerModules.forEach { evaluationDependsOn(it) }
|
||||
|
||||
val compiledModulesSources = compilerModules.map {
|
||||
project(it).the<JavaPluginConvention>().sourceSets.getByName("main").allSource
|
||||
project(it).javaPluginConvention().sourceSets.getByName("main").allSource
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -37,7 +37,7 @@ val compilerModules: Array<String> by rootProject.extra
|
||||
compilerModules.forEach { evaluationDependsOn(it) }
|
||||
|
||||
val compiledModulesSources = compilerModules.map {
|
||||
project(it).the<JavaPluginConvention>().sourceSets.getByName("main").allSource
|
||||
project(it).javaPluginConvention().sourceSets.getByName("main").allSource
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -37,7 +37,7 @@ val compilerModules: Array<String> by rootProject.extra
|
||||
compilerModules.forEach { evaluationDependsOn(it) }
|
||||
|
||||
val compiledModulesSources = compilerModules.map {
|
||||
project(it).the<JavaPluginConvention>().sourceSets.getByName("main").allSource
|
||||
project(it).javaPluginConvention().sourceSets.getByName("main").allSource
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
Reference in New Issue
Block a user