Migrate buildSrc plugins to build-logic

This commit is contained in:
Alexander Städing
2023-03-27 00:00:24 +02:00
committed by Andrew Steinborn
parent 7e932eaad4
commit 3d20c3dd2d
18 changed files with 145 additions and 263 deletions

View File

@@ -1,17 +1,14 @@
import com.velocitypowered.script.VelocityCheckstylePlugin
import com.velocitypowered.script.VelocityPublishPlugin
import com.velocitypowered.script.VelocitySpotlessPlugin
plugins {
`java-library`
id("velocity-checkstyle") apply false
id("velocity-spotless") apply false
}
subprojects {
apply<JavaLibraryPlugin>()
apply<VelocityCheckstylePlugin>()
apply<VelocityPublishPlugin>()
apply<VelocitySpotlessPlugin>()
apply(plugin = "velocity-checkstyle")
apply(plugin = "velocity-spotless")
java {
toolchain {
@@ -19,12 +16,6 @@ subprojects {
}
}
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") // adventure
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
testImplementation(rootProject.libs.junit)
}