Proper automated build using Gradle

Issue #313 resolved
Christopher Keil repo owner created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Adapt the TreeView 3.0 project build process to proper automated building using Gradle.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

N/A

CURRENT BEHAVIOR

from IDE building (JTV used Ant)

EXPECTED BEHAVIOR

Automated build using Gradle with specific plugins for Java and multi-OS packaging (#123)

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Adapt TreeView 3.0 project (directories, resources, files) for Gradle; write build script including useful plugins for static code checking and multi-OS deployment (#123)

FILES AFFECTED (where the changes will be implemented) - developers only

full project - all files

LEVEL OF EFFORT - developers only

overhaul

COMMENTS

Using the Java plugin with Gradle requires some reorganization of the current file hierarchy because the plugin expects certain files to be organized in certain folders.

Comments (12)

  1. Christopher Keil reporter

    I am going to add some resources here, which everyone can look at.

    Building a Java app with Gradle

    https://spring.io/guides/gs/gradle/

    OSX

    It's important to note, that Apple quit support for their native OSX version of Java with 1.6. Since then Java is exclusively released by Oracle which amounts to a slightly different process in bundling an application as an OSX app. https://github.com/crotwell/gradle-macappbundle/wiki/Intro

    Gradle Plugin for OSX app bundling: https://plugins.gradle.org/plugin/edu.sc.seis.macAppBundle

    Ubuntu / Debian PPA or standalone .deb-file

    https://blog.heckel.xyz/2014/05/29/gradle-create-windows-installers-debian-packages-manage-a-ppa-and-optional-sub-projects/#Building-Debian-Ubuntu-packages-and-uploading-to-a-PPA

    Windows Installer

    1. https://github.com/TheBoegl/gradle-launch4j
    2. https://blog.heckel.xyz/2014/05/29/gradle-create-windows-installers-debian-packages-manage-a-ppa-and-optional-sub-projects/#Windows-installers-with-Inno-Setup-on-Linux-automated-using-Gradle
  2. Christopher Keil reporter

    Sorry @hepcat72, didn't see your comment. I suppose you could do it now, but it would be less complicated when the project was switched to Gradle. I rebased the branch on master after Faizaan's last PR was merged so there shouldn't be any merge issues. Since format + clean are quickly executed in Eclipse I'd say lets do it after #313 is merged, but I understand that we have been pushing this back for quite some time now.

  3. Log in to comment