13
0
geforkt von Mirrors/Velocity
Velocity/build.gradle.kts
2023-03-01 21:12:39 -08:00

47 Zeilen
1.0 KiB
Plaintext

import com.velocitypowered.script.VelocityCheckstylePlugin
import com.velocitypowered.script.VelocityPublishPlugin
import com.velocitypowered.script.VelocitySpotlessPlugin
plugins {
`java-library`
}
val junitVersion: String by project.extra
allprojects {
group = "com.velocitypowered"
version = "3.2.0-SNAPSHOT"
}
subprojects {
apply<JavaLibraryPlugin>()
apply<VelocityCheckstylePlugin>()
apply<VelocityPublishPlugin>()
apply<VelocitySpotlessPlugin>()
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") // adventure
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
}
tasks {
test {
useJUnitPlatform()
reports {
junitXml.required.set(true)
}
}
}
}