grails-core
grails-core copied to clipboard
Execution failed for task ':grails-dependencies:installToHomeDist'. on Grails 7.0.0-SNAPSHOT w/ Gradle 8.10
Issue description
The legacy
Uploadtask was removed in Gradle 8. Please use themaven-publishorivy-publishplugin 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.
@codeconsole @matrei Do you know how to convert installToHomeDist from an Upload task to a maven-publish task?
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
}