Skip to content

Commit 9022455

Browse files
committed
Testing - move test runner out of main package
- CurseForge didn't like this
1 parent f5a5ad0 commit 9022455

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ repositories {
3131
dependencies {
3232
compileOnly("com.hypixel.hytale:Server:${hytaleVersion}")
3333
compileOnly("org.jetbrains:annotations:26.0.2")
34+
testImplementation("com.google.code.gson:gson:2.13.2")
3435
implementation("com.github.SkriptDev:skript-parser:1.0.9") {
3536
isTransitive = false
3637
}
@@ -59,7 +60,7 @@ tasks {
5960
mainClass.set("com.github.skriptdev.skript.api.skript.testing.TestRunnerMain")
6061
args(hytaleVersion, projectVersion, assetLocation)
6162

62-
classpath = sourceSets["main"].runtimeClasspath + testRunnerClasspath
63+
classpath = sourceSets["test"].runtimeClasspath + testRunnerClasspath
6364
}
6465
processResources {
6566
filesNotMatching("assets/**") {
@@ -105,6 +106,10 @@ tasks.withType<Checkstyle> {
105106
exclude("**/Block.java")
106107
}
107108

109+
tasks.withType<Test>().configureEach {
110+
enabled = false
111+
}
112+
108113
checkstyle {
109114
// Specify the version of the Checkstyle tool to use
110115
toolVersion = "10.21.0" // Use a recent version of Checkstyle

src/main/java/com/github/skriptdev/skript/api/skript/testing/TestRunnerMain.java renamed to src/test/java/com/github/skriptdev/skript/api/skript/testing/TestRunnerMain.java

File renamed without changes.

0 commit comments

Comments
 (0)