Update ktlint and gradle plugin.

This commit is contained in:
Cody Henthorne
2023-06-23 13:09:24 -04:00
committed by Nicholas
parent 65255121de
commit c17d62aeab
69 changed files with 447 additions and 176 deletions

View File

@@ -1,23 +1,22 @@
plugins {
id("org.jetbrains.kotlin.jvm")
id("java-library")
id("org.jlleitschuh.gradle.ktlint") version "11.1.0"
id("org.jetbrains.kotlin.jvm")
id("java-library")
id("org.jlleitschuh.gradle.ktlint") version "11.4.2"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
// NOTE: For now, in order to run ktlint on this project, you have to manually run ./gradlew :build-logic:tools:ktlintFormat
// Gotta figure out how to get it auto-included in the normal ./gradlew ktlintFormat
ktlint {
// Use a newer version to resolve https://github.com/JLLeitschuh/ktlint-gradle/issues/507
version.set("0.47.1")
version.set("0.49.1")
}
dependencies {
implementation(libs.dnsjava)
testImplementation(testLibs.junit.junit)
testImplementation(testLibs.mockk)
implementation(libs.dnsjava)
testImplementation(testLibs.junit.junit)
testImplementation(testLibs.mockk)
}