Skip to content

Commit

Permalink
Fixed Gradle not copying file on initial build
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlarkin committed Nov 3, 2016
1 parent 0b49107 commit fb963e3
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 fb963e3

Please sign in to comment.