Skip to content

Commit

Permalink
Distribution fix
Browse files Browse the repository at this point in the history
  • Loading branch information
macbury committed May 11, 2015
1 parent 2bfd9d8 commit c33438c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ sourceSets.main.java.srcDirs = [ "src/" ]

project.ext.mainClassName = "macbury.forge.desktop.DesktopLauncher"
project.ext.assetsDir = new File("../core/assets");
project.ext.distDir = new File("../dist");

libsDirName = new File("../../dist");

task run(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
Expand All @@ -20,24 +23,30 @@ task dist(type: Jar) {
from files(sourceSets.main.output.resourcesDir)
from {configurations.compile.collect {zipTree(it)}}
//from files(project.assetsDir);


exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'

manifest {
attributes 'Main-Class': project.mainClassName
}

copy {
from "${assetsDir}/db"
into "${buildDir}/libs/db"
into "${distDir}/db"
}
copy {
from "${assetsDir}/audio"
into "${buildDir}/libs/audio"
into "${distDir}/audio"
}

copy {
from "${assetsDir}/graphics"
into "${buildDir}/libs/graphics"
into "${distDir}/graphics"
}


}


dist.dependsOn classes

0 comments on commit c33438c

Please sign in to comment.