Skip to content

Commit f197d87

Browse files
committed
Switch from cadix licenser to indra-spotless
1 parent c463137 commit f197d87

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

build-logic/src/main/kotlin/codebook.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
java
55
`maven-publish`
66
id("com.diffplug.spotless")
7-
id("org.cadixdev.licenser")
7+
id("net.kyori.indra.licenser.spotless")
88
}
99

1010
repositories {
@@ -47,12 +47,13 @@ spotless {
4747
}
4848
}
4949

50-
license {
51-
header.set(resources.text.fromFile(rootProject.layout.projectDirectory.file("header.txt")))
50+
indraSpotlessLicenser {
51+
licenseHeaderFile(rootProject.layout.projectDirectory.file("header.txt"))
52+
newLine(true)
5253
}
5354

5455
val format by tasks.registering {
55-
dependsOn(tasks.spotlessApply, tasks.licenseFormat)
56+
dependsOn(tasks.spotlessApply)
5657
group = "format"
5758
}
5859

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
2-
spotless = "6.25.0"
2+
spotless = "8.0.0"
33
palantir = "2.50.0"
4-
licenser = "0.6.1"
4+
indra = "4.0.0"
55
slf4j = "2.0.7"
66
lorenz = "0.5.7"
77
unpick = "2.3.0"
@@ -14,12 +14,12 @@ mockito = "5.4.0"
1414

1515
[plugins]
1616
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
17-
licenser = { id = "org.cadixdev.licenser", version.ref = "licenser" }
17+
licenser = { id = "net.kyori.indra.licenser.spotless", version.ref = "indra" }
1818
shadow = "com.github.johnrengelman.shadow:8.1.1"
1919

2020
[libraries]
2121
gradle-spotless = { module = "com.diffplug.spotless:com.diffplug.spotless.gradle.plugin", version.ref = "spotless" }
22-
gradle-licenser = { module = "org.cadixdev.licenser:org.cadixdev.licenser.gradle.plugin", version.ref = "licenser" }
22+
gradle-licenser = { module = "net.kyori.indra.licenser.spotless:net.kyori.indra.licenser.spotless.gradle.plugin", version.ref = "indra" }
2323

2424
checker = "org.checkerframework:checker-qual:3.36.0"
2525
picocli = "info.picocli:picocli:4.7.4"

0 commit comments

Comments
 (0)