File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -32,22 +32,3 @@ dependencies {
3232tasks.shadowJar {
3333 archiveFileName = " ${project.name} -${version} -shaded.jar"
3434}
35-
36- tasks.register<JavaExec >(" runServer" ) {
37- outputs.upToDateWhen { false }
38- dependsOn(" shadowJar" )
39-
40- val shadowJar = tasks.named(" shadowJar" , ShadowJar ::class ).get()
41- val pluginJar = shadowJar.archiveFile.get().asFile
42- val cwd = layout.buildDirectory.file(" run" ).get().asFile
43- val pluginsDir = cwd.resolve(" plugins" ).apply { mkdirs() }
44- doFirst { pluginJar.copyTo(File (pluginsDir, pluginJar.name), overwrite = true ) }
45-
46- val group = " org.allaymc.allay"
47- val allays = configurations.compileOnly.get().dependencies.filter { it.group == group }
48- val dependency = allays.find { it.name == " server" } ? : allays.find { it.name == " api" }!!
49- val server = dependencies.create(" $group :server:${dependency.version} " )
50- classpath = files(configurations.detachedConfiguration(server).resolve())
51- mainClass = " org.allaymc.server.Allay"
52- workingDir = cwd
53- }
You can’t perform that action at this time.
0 commit comments