Skip to content

Commit 08cc38b

Browse files
authored
Merge pull request #140 from AstechzGO/minor-update
Fixed Gradle not copying file on initial build
2 parents 0b49107 + fb963e3 commit 08cc38b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,18 @@ task deploy(type: Jar) {
6565
baseName = project.name
6666
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
6767
with jar
68-
69-
// Copy to base directory
68+
}
69+
70+
// Copy to base directory
71+
task copyToRoot << {
7072
copy {
7173
from "build/libs/Luminescent.jar"
7274
into "/"
7375
}
7476
}
7577

78+
deploy.finalizedBy copyToRoot
79+
7680
task run(dependsOn:deploy) << {
7781
javaexec {
7882
main="-jar";

0 commit comments

Comments
 (0)