How to use greenorg.greenrobot:greendao-gradle-plugin:3.3.0 without jcenter repo?

566 Views Asked by At

jcenter repo is deprecated, so I'd like to migrate from it. Unfortunatelly org.greenrobot:greendao-gradle-plugin:3.3.0 is published only here.

How can I use it without jcenter?

1

There are 1 best solutions below

1
Cisco On

The plugin is also published to Central: https://search.maven.org/artifact/org.greenrobot/greendao-gradle-plugin

// settings.gradle

pluginManagement {
    resolutionStrategy {
        eachPlugin {
            if (requested.id.id == 'org.greenrobot.greendao') {
                useModule('org.greenrobot:greendao-gradle-plugin:3.3.0')
            }
        }
    }
    repositories {
        mavenCentral() // Use Maven Central in addition to Gradle plugin portal
        gradlePluginPortal()
    }
}

--

// build.gradle
plugins {
    id 'org.greenrobot.greendao'
}