Skip to content

Commit 2b7be5e

Browse files
committed
use same library version file
1 parent 016e560 commit 2b7be5e

File tree

4 files changed

+4
-29
lines changed

4 files changed

+4
-29
lines changed

paperweight-core/src/main/kotlin-templates/io/papermc/paperweight/core/Versions.kt.peb

Lines changed: 0 additions & 27 deletions
This file was deleted.

paperweight-core/src/main/kotlin/io/papermc/paperweight/checkstyle/PaperCheckstyle.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
package io.papermc.paperweight.checkstyle
2424

25-
import io.papermc.paperweight.core.Versions
25+
import io.papermc.paperweight.util.*
2626
import io.papermc.paperweight.util.constants.*
2727
import org.gradle.api.Plugin
2828
import org.gradle.api.Project
@@ -36,7 +36,7 @@ abstract class PaperCheckstyle : Plugin<Project> {
3636
target.plugins.apply(PaperCheckstylePlugin::class.java)
3737

3838
target.extensions.configure(CheckstyleExtension::class.java) {
39-
toolVersion = Versions.CHECKSTYLE
39+
toolVersion = LibraryVersions.CHECKSTYLE
4040
}
4141

4242
target.tasks.withType(PaperCheckstyleTask::class.java).configureEach {

paperweight-lib/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ sourceSets.main {
1212
kotlinSources {
1313
properties.put("jst_version", libs.versions.jst)
1414
properties.put("tinyRemapper_version", libs.versions.tinyRemapper)
15+
properties.put("checkstyle_version", libs.versions.checkstyle)
1516
}
1617
}
1718
}

paperweight-lib/src/main/kotlin-templates/io/papermc/paperweight/util/LibraryVersions.kt.peb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ package io.papermc.paperweight.util
2525
object LibraryVersions {
2626
const val JST: String = "{{ jst_version }}"
2727
const val TINY_REMAPPER: String = "{{ tinyRemapper_version }}"
28+
const val CHECKSTYLE: String = "{{ checkstyle_version }}"
2829
}

0 commit comments

Comments
 (0)