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