Commit 1fd77f30 authored by Lukas Marik's avatar Lukas Marik

#782 add macAppBundle plugin to gradle, set simple settings

parent f5e50d1d
......@@ -22,6 +22,7 @@ buildscript {
repositories {
maven { url "http://repo1.maven.org/maven2" }
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
jcenter { url "http://jcenter.bintray.com/" }
}
dependencies {
......@@ -31,6 +32,7 @@ buildscript {
classpath 'com.novoda:gradle-android-command-plugin:1.3.0'
classpath 'com.badlogicgames.gdx:gdx-tools:1.6.1'
classpath 'edu.sc.seis.gradle:launch4j:2.3.0'
classpath "gradle.plugin.edu.sc.seis:macAppBundle:2.1.9"
}
}
......
......@@ -20,6 +20,7 @@ import groovy.io.FileType
apply plugin: "java"
apply plugin: 'edu.sc.seis.launch4j'
apply plugin: "edu.sc.seis.macAppBundle"
sourceCompatibility = 1.8
sourceSets {
......@@ -38,6 +39,12 @@ project.ext.mainLauncherClassName = "cz.nic.tablexia.desktop.DesktopLauncher"
project.ext.iTestLauncherClassName = "cz.nic.tablexia.desktop.DesktopITestLauncher"
project.ext.assetsDir = new File("../android/assets");
macAppBundle {
mainClassName = project.mainLauncherClassName
icon = '../ios/data/Tablexia_Icon_release.icns'
bundleJRE = true
}
task run(dependsOn: classes, type: JavaExec) {
main = project.mainLauncherClassName
classpath = sourceSets.main.runtimeClasspath
......@@ -296,7 +303,7 @@ iTestJar.dependsOn classes
iTestJar.dependsOn iTestClasses
iTestJar.dependsOn(':util:checksum:runChecksum')
assemble.dependsOn([handleJreTask, debugJar, debugExe, releaseJar, releaseExe, iTestJar])
assemble.dependsOn([handleJreTask, debugJar, debugExe, releaseJar, releaseExe, iTestJar, createApp])
jar.enabled = false
eclipse {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment