Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
android = "4.1.1.4"
androidGradlePlugin = "9.2.1"
androidGradlePlugin = "9.3.2"
asm = "9.10.1"
checkerQual = "4.2.2"
coroutines = "1.11.0"
Expand Down
9 changes: 9 additions & 0 deletions wire-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.gradle.api.attributes.java.TargetJvmVersion
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

Expand Down Expand Up @@ -111,3 +112,11 @@ tasks.withType<KotlinJvmCompile>().configureEach {
)
}
}

// AGP 9.3+ publishes its artifacts with Java 17 metadata. AGP is compileOnly here and this module
// keeps Java 11 bytecode for its consumers, so only relax the resolution attribute.
configurations.named("compileClasspath") {
attributes {
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
}
}
Loading