Add basic test

This commit is contained in:
alexcrea 2024-10-23 13:39:17 +02:00
parent c42140a45a
commit 2008b41b09
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
3 changed files with 114 additions and 3 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("com.github.seeseemelk:MockBukkit-v1.21:3.133.2")
testRuntimeOnly("commons-lang:commons-lang:2.6")
}
allprojects {
@ -80,7 +86,7 @@ allprojects {
dependencies {
compileOnly(kotlin("stdlib"))
// Currently not used. but it would be useful to test.
// Test dependency
testImplementation(platform("org.junit:junit-bom:5.9.1"))
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