52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
plugins {
|
|
`kotlin-dsl`
|
|
|
|
// When updating, update below in dependencies too
|
|
id("com.diffplug.spotless") version "6.2.2"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
mavenLocal()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.3.0")
|
|
// Needed for japicmp but not automatically brought in for some reason.
|
|
implementation("com.google.guava:guava:31.1-jre")
|
|
implementation("com.squareup:javapoet:1.13.0")
|
|
implementation("com.squareup.wire:wire-compiler:4.2.0")
|
|
implementation("com.squareup.wire:wire-gradle-plugin:4.2.0")
|
|
implementation("gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.18")
|
|
implementation("gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.0")
|
|
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.0")
|
|
implementation("me.champeau.jmh:jmh-gradle-plugin:0.6.6")
|
|
implementation("net.ltgt.gradle:gradle-errorprone-plugin:2.0.2")
|
|
implementation("net.ltgt.gradle:gradle-nullaway-plugin:1.3.0")
|
|
implementation("ru.vyarus:gradle-animalsniffer-plugin:1.5.4")
|
|
}
|
|
|
|
// We can't apply conventions to this build so include important ones such as the Java compilation
|
|
// target.
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
withType<JavaCompile>().configureEach {
|
|
with(options) {
|
|
release.set(8)
|
|
}
|
|
}
|
|
}
|
|
|
|
spotless {
|
|
kotlinGradle {
|
|
ktlint().userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2", "disabled_rules" to "no-wildcard-imports"))
|
|
target("**/*.gradle.kts")
|
|
}
|
|
}
|