2023-02-25 11:06:51 -05:00
|
|
|
plugins {
|
2023-03-31 14:05:25 -04:00
|
|
|
id("org.jetbrains.kotlin.jvm")
|
2023-02-27 19:44:51 -05:00
|
|
|
id("java-library")
|
|
|
|
id("org.jlleitschuh.gradle.ktlint") version "11.1.0"
|
2023-02-25 11:06:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
2023-02-27 19:44:51 -05:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
2023-02-25 11:06:51 -05:00
|
|
|
}
|
|
|
|
|
2023-02-25 11:58:10 -05:00
|
|
|
// 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
|
2023-02-27 19:44:51 -05:00
|
|
|
version.set("0.47.1")
|
2023-02-25 11:58:10 -05:00
|
|
|
}
|
|
|
|
|
2023-02-25 11:06:51 -05:00
|
|
|
dependencies {
|
2023-02-27 19:44:51 -05:00
|
|
|
implementation(libs.dnsjava)
|
2023-03-01 09:39:40 -04:00
|
|
|
testImplementation(testLibs.junit.junit)
|
|
|
|
testImplementation(testLibs.mockk)
|
2023-02-25 11:58:10 -05:00
|
|
|
}
|