Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Error occurs during publish task
Hi everybody. I am using these environment:
Blade version => 3.4.4.SNAPSHOT201901232230
Gradle version => Gradle 4.10.2
Workspace plugin => classpath group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "1.10.16"
I'd like to define publish step, but when I invoke "publish" task I get this stacktrace:
This is the configuration written into build.gradle:
It seems there is a conflict between DependencyManagementPlugin applied by both workspace plug-in and publish plugin. Any idea?
Thanks.
Enrico
Blade version => 3.4.4.SNAPSHOT201901232230
Gradle version => Gradle 4.10.2
Workspace plugin => classpath group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "1.10.16"
I'd like to define publish step, but when I invoke "publish" task I get this stacktrace:
[...]
org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']
[...]
Cannot configure the 'publishing' extension after it has been accessed.This is the configuration written into build.gradle:
[...]
configure(subprojects.findAll { it.parent.name.contains('modules') } ) {
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
[...]
}
}
repositories {
maven {
[...]
}
}
}
}It seems there is a conflict between DependencyManagementPlugin applied by both workspace plug-in and publish plugin. Any idea?
Thanks.
Enrico