Add some testing (#38)

This commit is contained in:
alexcrea 2024-11-18 07:29:51 +01:00 committed by GitHub
parent c42140a45a
commit ed58c9c107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 1911 additions and 150 deletions

View file

@ -28,7 +28,9 @@ dependencies {
compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT")
// Gui library
implementation("com.github.stefvanschie.inventoryframework:IF:0.10.17")
val stefvanschie_IF = "com.github.stefvanschie.inventoryframework:IF:0.10.17"
implementation(stefvanschie_IF)
testRuntimeOnly(stefvanschie_IF)
// EnchantsSquaredRewritten
compileOnly(files("libs/EnchantsSquared.jar"))
@ -61,6 +63,10 @@ dependencies {
// include kotlin for the offline jar
implementation(kotlin("stdlib"))
// Test dependency
testImplementation("org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.3.1")
testRuntimeOnly("commons-lang:commons-lang:2.6")
}
allprojects {
@ -80,8 +86,8 @@ allprojects {
dependencies {
compileOnly(kotlin("stdlib"))
// Currently not used. but it would be useful to test.
testImplementation(platform("org.junit:junit-bom:5.9.1"))
// Test dependency
testImplementation(platform("org.junit:junit-bom:5.11.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
@ -92,7 +98,7 @@ allprojects {
// Configure used version of kotlin and java
java {
disableAutoTargetJvm()
toolchain.languageVersion.set(JavaLanguageVersion.of(20))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
// Set target version