How to change groupid if the project is already loaded in bintray and synchronized with jcenter?

I recently uploaded a github project to bintray and successfully synchronized it with the JCenter repository. I used this tutorial:

http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en

So my gradle dependency:

dependencies {
     compile 'com.github.danylo2006:hashtag-helper:1.1.0'
}

To download it, I changed my build.gradle and added the appropriate script world. Everything is as in the textbook.

... some code here
ext {
    bintrayRepo = 'maven'
    bintrayName = 'hashtag-helper'

    publishedGroupId = 'com.github.danylo2006'
    libraryName = 'HashTagHelper'
    artifact = 'hashtag-helper'

    libraryDescription = 'This is a library designed for highlighting hashtags ("#example") and catching click on them.'

    siteUrl = 'https://github.com/danylo2006/HashTagHelper'
    gitUrl = 'https://github.com/danylo2006/HashTagHelper.git'

    libraryVersion = '1.1.0'

    developerId = 'danylovolokh'
    developerName = 'Danylo Volokh'
    developerEmail = 'v.danylo@gmail.com'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}

Here is the hard part:

I changed my alias github danylo2006 to danylovolokh and now I want to change the gradle dependency:

dependencies {
     compile 'com.github.danylo2006:hashtag-helper:1.1.0'
}

Change to:

dependencies {
     compile 'com.github.danylovolokh:hashtag-helper:1.1.0'
}
  • I got groupId what I need from Sonatype
  • So, I changed my gradle script.

The only relevant change:

publishedGroupId = 'com.github.danylo2006'

Changed to

publishedGroupId = 'com.github.danylovolokh'

: gradlew gradlew bintrayUpload

BUILD_SUCCESSFULL

gradle, ": (36, 13) : com.github.danylovolokh: hashtag-helper: 1.1.0"

+4
2

JCenter . JFrog JCenter. , JFrog support@bintray.com

+4

@JBaruch . , bintray - . , . , ...

java (groupID:artifact):

io.jeti.utils:serialize

(1.0.0/1.0.1/1.0.2/1.0.3/1.0.4/) groupID.

io.jeti:serialize

, (1.0.5/1.0.6) bintray groupID. :

. . , , , "serialize" java-. 2 , Jcenter: io/jeti/utils/serialize/- > Synced io/jeti/serialize β†’ jcenter

Id / groupId (io/jeti/utils) (1.0.0/1.0.1/1.0.2/1.0.3/1.0.4/) , . . , - (, serialize2), ( Id - io/jeti/serialize), JCenter. ( 1.0.5/1.0.6).

, , .

+2

Source: https://habr.com/ru/post/1624023/


All Articles