Relocate package org.jetbrains.kotlin in kotlinx-metadata-jvm

To prevent clashes in scenarios where it's used together with the Kotlin
compiler (e.g. in annotation processing)

 #KT-24945 Fixed
This commit is contained in:
Alexander Udalov
2018-06-18 17:34:09 +02:00
parent 173bcd90df
commit 8c8d0eefbb
4 changed files with 24 additions and 7 deletions
@@ -4,6 +4,7 @@
- Support metadata of local delegated properties (see `JvmDeclarationContainerExtensionVisitor.visitLocalDelegatedProperty`)
- [`KT-24881`](https://youtrack.jetbrains.com/issue/KT-24881) Use correct class loader in kotlinx-metadata to load MetadataExtensions implementations
- [`KT-24945`](https://youtrack.jetbrains.com/issue/KT-24945) Relocate package org.jetbrains.kotlin to fix IllegalAccessError in annotation processing
## 0.0.2
@@ -45,13 +45,14 @@ dependencies {
noDefaultJar()
val shadowJar = task<ShadowJar>("shadowJar") {
task<ShadowJar>("shadowJar") {
callGroovy("manifestAttributes", manifest, project)
manifest.attributes["Implementation-Version"] = version
from(mainSourceSet.output)
exclude("**/*.proto")
configurations = listOf(shadows)
relocate("org.jetbrains.kotlin", "kotlinx.metadata.internal")
val artifactRef = outputs.files.singleFile
runtimeJarArtifactBy(this, artifactRef)