Proper automated build using Gradle
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)
-
reporter -
- changed version to alpha04
-
- changed component to Packaging
-
- removed milestone
Removing milestone: Packaging (automated comment)
-
- changed milestone to C - 01
-
reporter - changed status to open
Beginning work
-
Alright, am I doing the code style thing now? I think there's still a PR out
-
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
#313is merged, but I understand that we have been pushing this back for quite some time now. -
reporter - changed status to resolved
Resolved by c1bb45b
-
- edited description
-
- changed version to beta2
-
- changed component to Installation, Bundling, & Packaging
- Log in to comment
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