Skip to content

Commit

Permalink
Lets clean up the copy stuff?
Browse files Browse the repository at this point in the history
  • Loading branch information
cjburkey01 committed May 9, 2024
1 parent d45d7f2 commit ebfd6f8
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ tasks {
// When the build task is run, copy the version into the testServerDir and output
// (Also rebuild the README file)
finalizedBy("updateReadme",
"copyClaimChunkToOutputDir",
"copyClaimChunkToPluginsDir"
"copyClaimChunkToOutputDir"
);
}

Expand Down Expand Up @@ -220,29 +219,16 @@ tasks {
mustRunAfter("copyClaimChunkToOutputDir");
description = "Copies ClaimChunk from the build directory to the test server plugin directory.";

val inputFile = mainDir.file("build/libs/claimchunk-${project.version}.jar");
val outputDir = mainDir.dir("${DepData.TEST_SERVER_DIR}/plugins");

inputs.file(inputFile);
outputs.file(outputDir.file("claimchunk-${project.version}.jar"));

from(mainDir.file("build/libs/claimchunk-${project.version}.jar"));
into(outputDir);
from(jar);
into(mainDir.dir("${DepData.TEST_SERVER_DIR}/plugins"));
}

register<Copy>("copyClaimChunkToOutputDir") {
// dependsOn("shadowJar");
mustRunAfter("updateReadme");
description = "Copies ClaimChunk from the build directory to the output directory.";

val inputFile = mainDir.file("build/libs/claimchunk-${project.version}.jar");
val outputDir = mainDir.dir(DepData.OUTPUT_DIR);

inputs.file(inputFile);
outputs.file(outputDir.file("claimchunk-${project.version}.jar"));

from(inputFile);
into(outputDir);
from(jar);
into(mainDir.dir(DepData.OUTPUT_DIR));
}

register<JavaExec>("googleFormat") {
Expand Down

0 comments on commit ebfd6f8

Please sign in to comment.