2023-01-02 06:53:37 +08:00
|
|
|
import com.velocitypowered.script.VelocityCheckstylePlugin
|
|
|
|
import com.velocitypowered.script.VelocityPublishPlugin
|
2023-01-02 07:46:33 +08:00
|
|
|
import com.velocitypowered.script.VelocitySpotlessPlugin
|
2023-01-02 06:53:37 +08:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
}
|
|
|
|
|
|
|
|
val junitVersion: String by project.extra
|
|
|
|
|
2023-01-02 10:51:33 +08:00
|
|
|
allprojects {
|
2023-01-02 06:53:37 +08:00
|
|
|
group = "com.velocitypowered"
|
|
|
|
version = "3.2.0-SNAPSHOT"
|
2023-01-02 10:51:33 +08:00
|
|
|
}
|
2023-01-02 06:53:37 +08:00
|
|
|
|
2023-01-02 10:51:33 +08:00
|
|
|
subprojects {
|
2023-01-02 06:53:37 +08:00
|
|
|
apply<JavaLibraryPlugin>()
|
|
|
|
|
|
|
|
apply<VelocityCheckstylePlugin>()
|
|
|
|
apply<VelocityPublishPlugin>()
|
2023-01-02 07:46:33 +08:00
|
|
|
apply<VelocitySpotlessPlugin>()
|
2023-01-02 06:53:37 +08:00
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(11))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2023-03-02 13:11:59 +08:00
|
|
|
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") // adventure
|
|
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
2023-01-02 06:53:37 +08:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
reports {
|
|
|
|
junitXml.required.set(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|