Closed edloidas closed 4 years ago
Created a separate issue #142 for deb
and rpm
artifacts.
Updated the code, according to the requests in the comments.
* 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
Does it work fine for ZIP?
Snapshot deployment should be configured like here
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.
@jsi if you are trying to test it locally, then you have to pass -PrepoKey=snapshot
to the publish
command
./gradlew publish -PrepoKey=snapshot ...
@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.
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
I have tried to update the URL, but that is not so easy either: https://github.com/enonic/xp-distro/issues/143
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.
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?