enonic / xp-distro

Enonic XP full distribution.
GNU General Public License v3.0
3 stars 3 forks source link

Linux distribution should be tar.gz #85 #141

Closed edloidas closed 4 years ago

edloidas commented 4 years ago

Maybe @anatol-sialitski can make sure that it works on Linux too and @jsi check if publishing still works the same way for deb and rpm?

edloidas commented 4 years ago

Created a separate issue #142 for deb and rpm artifacts.

edloidas commented 4 years ago

Updated the code, according to the requests in the comments.

jsi commented 4 years ago
* What went wrong:
Execution failed for task ':publishMavenJavaPublicationToPublicRepository'.
> Failed to publish publication 'mavenJava' to repository 'public'
   > Could not PUT 'https://repo.enonic.com/public/com/enonic/xp/enonic-xp-linux-server/7.6.0-SNAPSHOT/enonic-xp-linux-server-7.6.0-20201105.104917-1.tgz'. Received status code 502 from server: Bad Gateway
edloidas commented 4 years ago

Does it work fine for ZIP?

alansemenov commented 4 years ago

Snapshot deployment should be configured like here

jsi commented 4 years ago

No, I do not think so, but not sure. .zip has not been uploaded today, anyway: https://repo.enonic.com/snapshot/com/enonic/xp/enonic-xp-linux-server/7.6.0-SNAPSHOT/

It appears to try tar.gz and fail. I see nothing in the logs about uploading .zip.

alansemenov commented 4 years ago

@jsi if you are trying to test it locally, then you have to pass -PrepoKey=snapshot to the publish command

./gradlew publish -PrepoKey=snapshot ...

jsi commented 4 years ago

@alansemenov - Can't this be selected automatically by gradle? It should be a simple thing to check the version and use the "snapshot" repo if version is a snapshot and "public" otherwise.

jsi commented 4 years ago

Lots of trouble with this one. V2 of the Adopt Open JDK service is supposedly deprecated: https://api.adoptopenjdk.net/swagger-ui/

But it no longer works for me at all. When I check out this branch and try to build, I get this error:

* What went wrong:
Execution failed for task ':downloadJdk'.
> Could not find JDK binary download URL: https://api.adoptopenjdk.net/v2/info/releases/openjdk11?openjdk_impl=hotspot&os=linux&arch=x64&release=latest&type=jre
jsi commented 4 years ago

I have tried to update the URL, but that is not so easy either: https://github.com/enonic/xp-distro/issues/143

rymsha commented 4 years ago

Can't this be selected automatically by gradle? It should be a simple thing to check the version and use the "snapshot" repo if version is a snapshot and "public" otherwise

It should not be selected based on artifact name. We may change default to snapshot not it is out of scope.