Skip to content

Commit

Permalink
Copy legacy Kotlin variant metadata (fixes #438)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Nov 2, 2020
1 parent 0a290fb commit 4f2d15c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -23,7 +23,7 @@ apply plugin: 'nexus'
apply plugin: 'codenarc'

group = 'com.github.ben-manes'
version = '0.33.0'
version = '0.34.0'

sourceCompatibility = '1.8'

Expand Down
Expand Up @@ -138,6 +138,12 @@ class Resolver {
(dependency instanceof ExternalDependency) && (dependency.group == 'org.jetbrains.kotlin')
}.minus(configuration.dependencies)

// Adds the Kotlin 1.2.x legacy metadata to assist in variant selection
Configuration metadata = project.configurations.findByName("commonMainMetadataElements")
if (metadata != null) {
addAttributes(copy, metadata)
}

copy.dependencies.clear()
copy.dependencies.addAll(latest)
copy.dependencies.addAll(inherited)
Expand Down

0 comments on commit 4f2d15c

Please sign in to comment.