[ci skip] Add a test plugin (#6133)

This commit is contained in:
Jason Penilla
2021-07-09 03:04:33 -07:00
parent 43e9be4586
commit 5fe7fbd769
6 changed files with 51 additions and 1 deletions

View File

@@ -127,6 +127,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ workingDir = rootProject.layout.projectDirectory.dir(
+ providers.gradleProperty("runWorkDir").forUseAtConfigurationTime().orElse("run")
+ ).get().asFile
+
+ if (rootProject.childProjects["test-plugin"] != null) {
+ val testPluginJar = rootProject.project(":test-plugin").tasks.jar.flatMap { it.archiveFile }
+ inputs.file(testPluginJar)
+ args("-add-plugin=${testPluginJar.get().asFile.absolutePath}")
+ }
+
+ args("--nogui")
+ systemProperty("net.kyori.adventure.text.warnWhenLegacyFormattingDetected", true)
+ if (project.hasProperty("disableWatchdog")) {