buildscript { val kotlinVersion by extra("1.8.10") repositories { google() mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") } } allprojects { // Needed because otherwise the kapt task defaults to jvmTarget 17, which "poisons the well" and requires us to bump up too tasks.withType().configureEach { kotlinOptions { jvmTarget = "11" } } }