pablisco / auto-module

A Gradle plugin to generate a module graph and include them modules
MIT License
110 stars 11 forks source link

Generated buildscript uses deprecated jcenter #10

Open koral-- opened 1 year ago

koral-- commented 1 year ago

com.pablisco.gradle.automodule:plugin:0.15 generates the following code:

buildscript{
    repositories {

        gradlePluginPortal()
    }
}
plugins {
    kotlin("jvm") version "1.4.0"
}

repositories {
    jcenter()

    gradlePluginPortal()
}

dependencies {
    implementation(kotlin("stdlib"))
    api("com.pablisco.gradle.automodule:plugin:0.15")
}

jcenter() is now deprecated and will be removed in Gradle 8. The following warning is produced:

Registering artifact transforms extending ArtifactTransform has been deprecated. This is scheduled to be removed in Gradle 8.0. Implement TransformAction instead. See https://docs.gradle.org/7.6/userguide/artifact_transforms.html for more details.
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.6/userguide/upgrading_version_6.html#jcenter_deprecation
        at Build_gradle$1.invoke(build.gradle.kts:12)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

It can be replaced by mavenCentral() perhaps.