Skip to content

Generated buildscript uses deprecated jcenter #10

@koral--

Description

@koral--

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions