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

Failed to build via jitpack.io #48

Closed ComBatVision closed 5 years ago

ComBatVision commented 5 years ago

Hi.

Is it possible to fix build scripts to be able to import develop-SNAPSHOT from github via jitpack.io?

Now it shows following errors: https://jitpack.io/com/github/WorldWindEarth/WorldWindJava/develop-a840f19ad8-1/build.log

PJHogan commented 5 years ago

Seems dated but doable, https://www.jitpack.io/ https://github.com/jitpack-io/jitpack.io

wcmatthysen commented 5 years ago

@Sufaev, we can look at JitPack as one way to distribute snapshots. It seems like an interesting alternative to hosting artifacts on Bintray. To address your issue: I see from the error message in the JitPack build:

* What went wrong:
A problem occurred evaluating root project 'worldwind'.
> Could not set unknown property 'archiveBaseName' for task ':extensionsJar' of type 
org.gradle.api.tasks.bundling.Jar.

It looks like one of the issues that I fixed in pull-request #44 for the Gradle config. Specifically, if you look at this commit: https://github.com/WorldWindEarth/WorldWindJava/pull/44/commits/ec9415a26cadfddae0f33b1c3b123257db0a61cf you'll see I changed archiveBaseName to baseName. I think the issue will be solved once we merge those changes into develop.

ComBatVision commented 5 years ago

Now jitpack builds successfully. Issue can be closed. https://jitpack.io/com/github/WorldWindEarth/WorldWindJava/develop-a024a748a9-1/build.log

wcmatthysen commented 5 years ago

@Sufaev, that is good news. It was probably the recent Gradle changes.