From 1b96a035a7d2139dc45b4e6f0e1cf521be560b00 Mon Sep 17 00:00:00 2001 From: Nacho Lopez Date: Tue, 29 Oct 2024 19:56:25 +0100 Subject: [PATCH] Remove -jvm suffix where applicable --- .../java/com/squareup/anvil/plugin/ClasspathTest.kt | 2 +- .../src/main/java/com/squareup/anvil/plugin/AnvilPlugin.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle-plugin/src/gradleTest/java/com/squareup/anvil/plugin/ClasspathTest.kt b/gradle-plugin/src/gradleTest/java/com/squareup/anvil/plugin/ClasspathTest.kt index 6389f76b8..254b4b7c9 100644 --- a/gradle-plugin/src/gradleTest/java/com/squareup/anvil/plugin/ClasspathTest.kt +++ b/gradle-plugin/src/gradleTest/java/com/squareup/anvil/plugin/ClasspathTest.kt @@ -136,7 +136,7 @@ internal class ClasspathTest : BaseGradleTest() { } taskOutputs[":printCompileClasspath"] shouldBe """ - dev.zacsweers.anvil:annotations-jvm + dev.zacsweers.anvil:annotations $stdlib """.trimIndent() diff --git a/gradle-plugin/src/main/java/com/squareup/anvil/plugin/AnvilPlugin.kt b/gradle-plugin/src/main/java/com/squareup/anvil/plugin/AnvilPlugin.kt index 843872f5b..b59ee4630 100644 --- a/gradle-plugin/src/main/java/com/squareup/anvil/plugin/AnvilPlugin.kt +++ b/gradle-plugin/src/main/java/com/squareup/anvil/plugin/AnvilPlugin.kt @@ -145,12 +145,12 @@ internal open class AnvilPlugin : KotlinCompilerPluginSupportPlugin { disableCorrectErrorTypes(variant) kotlinCompilation.dependencies { - compileOnly("$GROUP:annotations-jvm:$VERSION") + compileOnly("$GROUP:annotations:$VERSION") } kotlinCompilation.substituteDependencies( project, "com.squareup.anvil:annotations", - "$GROUP:annotations-jvm", + "$GROUP:annotations", ) } if (variant.variantFilter.addOptionalAnnotations) {