Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature files are renamed at upload to Bintray #124

Open
robertpanzer opened this issue Jun 7, 2016 · 4 comments
Open

Signature files are renamed at upload to Bintray #124

robertpanzer opened this issue Jun 7, 2016 · 4 comments

Comments

@robertpanzer
Copy link

This issue is in relation to asciidoctor/asciidoctorj#470

The AsciidoctorJ build generates signatures for the pom and all archives.
For the archive asciidoctorj-1.6.0-alpha.3.jar this file is called asciidoctorj-1.6.0-alpha.3.jar.asc in the local file system:

$ ls ~/dev/asciidoctorj/asciidoctorj-core/build/libs
asciidoctorj-1.6.0-alpha.3-javadoc.jar      asciidoctorj-1.6.0-alpha.3-sources.jar      asciidoctorj-1.6.0-alpha.3.jar
asciidoctorj-1.6.0-alpha.3-javadoc.jar.asc  asciidoctorj-1.6.0-alpha.3-sources.jar.asc  asciidoctorj-1.6.0-alpha.3.jar.asc

But when uploading the publication the signature files suddenly get a new name:

Uploading to https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3.jar...
Uploaded to 'https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3.jar'.
Uploading to https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-jar.asc...
Uploaded to 'https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-jar.asc'.
Uploading to https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-sources.jar...
Uploaded to 'https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-sources.jar'.
Uploading to https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-sources-jar.asc...
Uploaded to 'https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-sources-jar.asc'.
Uploading to https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-javadoc.jar...
Uploaded to 'https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-javadoc.jar'.
Uploading to https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-javadoc-jar.asc...
Uploaded to 'https://api.bintray.com/content/asciidoctor/maven/asciidoctorj/1.6.0-alpha.3/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/asciidoctorj-1.6.0-alpha.3-javadoc-jar.asc'.

(Note -jar.asc instead of .jar.asc)

As a consequence the artifacts cannot be promoted to Maven Central via Bintray as the validation fails because no signature files are present.

Is it maybe possible to configure this behavior?

@eyalbe4
Copy link
Contributor

eyalbe4 commented Jun 7, 2016

Thanks for reporting this @robertpanzer. We're checking this and will update soon.

@eyalbe4
Copy link
Contributor

eyalbe4 commented Jun 8, 2016

@robertpanzer, can you please try version 1.7-SNAPSHOT of the Bintray Plugin and confirm it resolves this issue? After confirming it does, we'll release it.
You can use 1.7-SNAPSHOT by configuring the below repository in your build script.

buildscript {
    repositories {
        maven {
            url 'https://oss.jfrog.org/oss-snapshot-local'
        }
        jcenter()
    }
    dependencies {
        classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7-SNAPSHOT"
    }
}

@robertpanzer
Copy link
Author

Seems to produce the correct file names now.

Thanks a lot!!!!

Looking forward to the next release!

@eyalbe4
Copy link
Contributor

eyalbe4 commented Jun 22, 2016

@robertpanzer, 1.7 was released with this fix.
See the full release notes here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants