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 { ...@@ -22,6 +22,7 @@ buildscript {
repositories { repositories {
maven { url "http://repo1.maven.org/maven2" } maven { url "http://repo1.maven.org/maven2" }
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
jcenter { url "http://jcenter.bintray.com/" } jcenter { url "http://jcenter.bintray.com/" }
} }
dependencies { dependencies {
...@@ -31,6 +32,7 @@ buildscript { ...@@ -31,6 +32,7 @@ buildscript {
classpath 'com.novoda:gradle-android-command-plugin:1.3.0' classpath 'com.novoda:gradle-android-command-plugin:1.3.0'
classpath 'com.badlogicgames.gdx:gdx-tools:1.6.1' classpath 'com.badlogicgames.gdx:gdx-tools:1.6.1'
classpath 'edu.sc.seis.gradle:launch4j:2.3.0' 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 ...@@ -20,6 +20,7 @@ import groovy.io.FileType
apply plugin: "java" apply plugin: "java"
apply plugin: 'edu.sc.seis.launch4j' apply plugin: 'edu.sc.seis.launch4j'
apply plugin: "edu.sc.seis.macAppBundle"
sourceCompatibility = 1.8 sourceCompatibility = 1.8
sourceSets { sourceSets {
...@@ -38,6 +39,12 @@ project.ext.mainLauncherClassName = "cz.nic.tablexia.desktop.DesktopLauncher" ...@@ -38,6 +39,12 @@ project.ext.mainLauncherClassName = "cz.nic.tablexia.desktop.DesktopLauncher"
project.ext.iTestLauncherClassName = "cz.nic.tablexia.desktop.DesktopITestLauncher" project.ext.iTestLauncherClassName = "cz.nic.tablexia.desktop.DesktopITestLauncher"
project.ext.assetsDir = new File("../android/assets"); 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) { task run(dependsOn: classes, type: JavaExec) {
main = project.mainLauncherClassName main = project.mainLauncherClassName
classpath = sourceSets.main.runtimeClasspath classpath = sourceSets.main.runtimeClasspath
...@@ -296,7 +303,7 @@ iTestJar.dependsOn classes ...@@ -296,7 +303,7 @@ iTestJar.dependsOn classes
iTestJar.dependsOn iTestClasses iTestJar.dependsOn iTestClasses
iTestJar.dependsOn(':util:checksum:runChecksum') 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 jar.enabled = false
eclipse { 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