WorldWindEarth / WorldWindJava

A community supported fork of the NASA WorldWind Java SDK (WWJ) is for building cross-platform 3D geospatial desktop applications in Java.
https://worldwind.earth/WorldWindJava/
48 stars 14 forks source link

Gradle build-script improvements #66

Closed wcmatthysen closed 5 years ago

wcmatthysen commented 5 years ago

Description of the Change

Additional changes and fixes to the build.gradle file. In particular we can now build the MilStd2525 symbology zip file as well as launch the layer-manager example via the runLayerManager task. The dependency declarations have been fixed by swapping the "compile" clauses with "implementation" and vice versa (this was incorrectly declared initially). We also now have the ability to build against the system GDAL jar if required.

Why Should This Be In Core?

The build.gradle file is now more complete and covers most of the functionality of the ant build script. We just lack the webstart clauses.

Benefits

More complete gradle build script.

Potential Drawbacks

None

Applicable Issues

None

wcmatthysen commented 5 years ago

@gbburkhardt, @Sufaev, I made a couple of fixes to the build.gradle file. Most of the functionality of the ant build scripts have been mirrored except for the Webstart stuff. However, as Webstart is dead we can probably omit it altogether.

Note: to build against the system GDAL you can pass the following parameter when building:

gradle build -PsystemGDAL

I'll have to have a look at whether we can use this parameter during runtime with NetBeans to force it to use the system-based GDAL as dependency when launching one of the main classes.