grails-core icon indicating copy to clipboard operation
grails-core copied to clipboard

Execution failed for task ':grails-dependencies:installToHomeDist'. on Grails 7.0.0-SNAPSHOT w/ Gradle 8.10

Open jamesfredley opened this issue 1 year ago • 1 comments

Issue description

The legacy Upload task was removed in Gradle 8. Please use the maven-publish or ivy-publish plugin instead. For more on publishing on maven repositories, please refer to https://docs.gradle.org/8.10/userguide/publishing_maven.html#publishing_maven in the Gradle documentation.

jamesfredley avatar Aug 29 '24 00:08 jamesfredley

@codeconsole @matrei Do you know how to convert installToHomeDist from an Upload task to a maven-publish task?

jamesfredley avatar Sep 06 '24 15:09 jamesfredley

This was consolidated down to the following. The build was no longer using flatDir name: 'libs', so it was removed.

      tasks.withType(PublishToMavenLocal).configureEach {
            doLast {
                ant.copy(todir: homeDistDir, flatten: true, includeEmptyDirs: false) {
                    fileset dir: distInstallDir
                }
            }
        }

    configurations {
        publishedToMavenLocal.extendsFrom archives
    }

jamesfredley avatar Sep 10 '24 00:09 jamesfredley