A Gradle Plugin to create a Mac OSX .app application and dmg based on the project.
Note I am no longer able to actively develop this project.
I will consider pull requests, but I believe that the Java world has changed significantly over the past several years, and this plugin may no longer be the recommended way to package a Java app for OSX.
Available at plugins.gradle.org.
Version 2.3.1 released 27 February 2024.
Now available via the Gradle Plugin Portal. Please see: http://plugins.gradle.org/plugin/edu.sc.seis.macAppBundle
To add to a gradle project, add this to build.gradle and run gradle createApp or gradle createDmg. The first should work on most systems, the second will only work on Mac OSX as it uses hdiutils which is a Mac-only application. Also see the Wiki for more information.
Adding this line to your gradle buildfile may be needed:
configurations.default.canBeResolved=true
For gradle 2.1 or later:
plugins {
id "edu.sc.seis.macAppBundle" version "2.3.0"
}