Skip to content

Publish the sdk in a public maven repository #8

Closed

Description

@zaza

I'm aware the sdk is in its early stages, but currently the only way to consume it requires cloning the git repository and installing it in a local maven repository. Once publicly available it would be easier to access and play with it.

Activity

  1. aalmiray commented on Aug 2, 2022

    @aalmiray
    Contributor

    FWIW the following POM elements must be defined before publishing to Maven Central:

    $ mvn org.kordamp.maven:pomchecker-maven-plugin:1.2.0:check-maven-central
    [INFO] Scanning for projects...
    [INFO] 
    [INFO] -------------------< dev.cdevents:cdevents-sdk-java >-------------------
    [INFO] Building cdevents-sdk-java 0.0.1
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO] 
    [INFO] --- pomchecker-maven-plugin:1.2.0:check-maven-central (default-cli) @ cdevents-sdk-java ---
    [WARNING] <url> is not defined in POM. Will use computed value from parent: 
    	null
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  0.281 s
    [INFO] Finished at: 2022-08-02T20:17:45+02:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.kordamp.maven:pomchecker-maven-plugin:1.2.0:check-maven-central (default-cli) on project cdevents-sdk-java: MavenCentral check failed: 
    [ERROR] The POM file
    [ERROR] /private/tmp/sdk-java/pom.xml
    [ERROR] cannot be uploaded to Maven Central due to the following reasons:
    [ERROR]  * <url> can not be blank.
    [ERROR]  * <licenses> block is required but was left empty.
    [ERROR]  * <developers> block is required but was left empty.
    [ERROR]  * The <scm> block is required.
    

    Additionally, -sources and -javadoc are needed as well. PGP signatures are a must. I can provide a PR that covers these requirements.

  2. m-linner-ericsson commented on Aug 3, 2022

    @m-linner-ericsson

    @aalmiray If you have the time to provide a PR, please do so. We want more people aboard 😄

  3. aalmiray commented on Apr 18, 2023

    @aalmiray
    Contributor

    This may be closed now that #9 has been merged 🎉

  4. tomek-pv commented on Apr 18, 2023

    @tomek-pv

    Is it really done? Has the SDK been published to Maven central? If I understand what the PR does correctly, it can be published now, but it hasn't happened yet, am I right? "There aren’t any releases here"

  5. aalmiray commented on Apr 18, 2023

    @aalmiray
    Contributor

    A Github release is not the same as publication to Maven Central. v1.0.0-draft6 is available from Maven Central. https://search.maven.org/artifact/dev.cdevents.sdk-java/cdevents-sdk-java/v0.1.0-draft6/jar

    The current configuration does not create GitHub releases. I've raised #22 to discuss options.

  6. afrittoli commented on Apr 18, 2023

    @afrittoli
    Member

    @tomek-pv that's a good question, I did publish what's currently tagged as v0.1.0-draft6 to maven central but we have no GitHub release yet - mainly because I would like the SDK Java team to check everything is in shape for that :)

  7. afrittoli commented on Apr 18, 2023

    @afrittoli
    Member

    @aalmiray I saw your reply after I posted mine 😅

  8. tomek-pv commented on Apr 18, 2023

    @tomek-pv

    Thanks guys, that makes sense. Let's keep this closed and move the discussion to #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions