Skip to content

Commit

Permalink
remove 1.7 artifacts from the fat jar (#4218)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin authored Jun 23, 2022
1 parent 5cda0c2 commit 7546672
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apollo-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ if (relocateJar) {
exclude("META-INF/versions/9/module-info\\.class")
exclude("META-INF/kotlin-stdlib.*\\.kotlin_module")

// Remove the following error:
// /Users/mbonnin/.m2/repository/com/apollographql/apollo3/apollo-gradle-plugin/3.3.3-SNAPSHOT/apollo-gradle-plugin-3.3.3-SNAPSHOT.jar!/META-INF/kotlinpoet.kotlin_module:
// Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1,
// expected version is 1.5.1.
exclude("META-INF/kotlinpoet.kotlin_module")

//Remove the following error:
// /Users/mbonnin/git/test-gradle-7-4/src/main/kotlin/Main.kt: (2, 5): Class 'kotlin.Unit' was compiled
// with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version
// is 1.5.1.
exclude("kotlin/Unit.class")

// Remove proguard rules from dependencies, we'll manage them ourselves
exclude("META-INF/proguard/.*")
}
Expand Down

0 comments on commit 7546672

Please sign in to comment.