Skip to content

Commit

Permalink
Merge pull request #140 from AstechzGO/minor-update
Browse files Browse the repository at this point in the history
Fixed Gradle not copying file on initial build
  • Loading branch information
ryanlarkin authored Nov 3, 2016
2 parents 0b49107 + fb963e3 commit 08cc38b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,18 @@ task deploy(type: Jar) {
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar

// Copy to base directory
}

// Copy to base directory
task copyToRoot << {
copy {
from "build/libs/Luminescent.jar"
into "/"
}
}

deploy.finalizedBy copyToRoot

task run(dependsOn:deploy) << {
javaexec {
main="-jar";
Expand Down

0 comments on commit 08cc38b

Please sign in to comment.