[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) {
|
||||
configurations.register('java9PatchModule') {
|
||||
extendsFrom(configurations.compileOnly)
|
||||
exclude(group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib')
|
||||
canBeResolved = true
|
||||
}
|
||||
|
||||
LibrariesCommon.configureJava9Compilation(
|
||||
project,
|
||||
'kotlin.reflect',
|
||||
[sourceSets.main.output, configurations.compileOnly.filter {
|
||||
!it.name.contains("kotlin-stdlib")
|
||||
}]
|
||||
[sourceSets.main.output, configurations.java9PatchModule]
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user