[Build] Create configuration in :kotlin-reflect-api to patch Java module
`compileOnly` configuration is unresolvable, and it's more preferable to create new configuration that extends from it rather than making it resolvable
This commit is contained in:
committed by
Space
parent
c6e1e4fd8e
commit
2f230833ac
@@ -32,12 +32,16 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (includeJava9) {
|
if (includeJava9) {
|
||||||
|
configurations.register('java9PatchModule') {
|
||||||
|
extendsFrom(configurations.compileOnly)
|
||||||
|
exclude(group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib')
|
||||||
|
canBeResolved = true
|
||||||
|
}
|
||||||
|
|
||||||
LibrariesCommon.configureJava9Compilation(
|
LibrariesCommon.configureJava9Compilation(
|
||||||
project,
|
project,
|
||||||
'kotlin.reflect',
|
'kotlin.reflect',
|
||||||
[sourceSets.main.output, configurations.compileOnly.filter {
|
[sourceSets.main.output, configurations.java9PatchModule]
|
||||||
!it.name.contains("kotlin-stdlib")
|
|
||||||
}]
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user