<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Error occurs during publish task</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112424325" />
  <subtitle>Error occurs during publish task</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112424325</id>
  <updated>2026-04-05T15:50:39Z</updated>
  <dc:date>2026-04-05T15:50:39Z</dc:date>
  <entry>
    <title>Error occurs during publish task</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112424324" />
    <author>
      <name>Enrico Oliosi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112424324</id>
    <updated>2019-02-21T08:44:24Z</updated>
    <published>2019-02-21T08:44:24Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi everybody. I am using these environment:&lt;br&gt;&lt;br&gt;Blade version =&amp;gt; 3.4.4.SNAPSHOT201901232230&lt;br&gt;Gradle version =&amp;gt; Gradle 4.10.2&amp;nbsp;&lt;br&gt;Workspace plugin =&amp;gt; classpath group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "1.10.16"&lt;br&gt;&lt;br&gt;I'd like to define publish step, but when I invoke "publish" task I get this stacktrace:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;[...]
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.&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;This is the configuration written into build.gradle:&lt;br&gt;&lt;pre&gt;&lt;code&gt;[...]
configure(subprojects.findAll { it.parent.name.contains('modules') } ) {

    apply plugin: 'maven-publish'

    publishing {
        publications {
            mavenJava(MavenPublication) {
                   [...]
             }
         }
        
         repositories {
            maven {
                [...]
            }
        }
    }        
}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;It seems there is a conflict between DependencyManagementPlugin applied by both workspace plug-in and publish plugin. Any idea?&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;&lt;br&gt;Enrico&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Enrico Oliosi</dc:creator>
    <dc:date>2019-02-21T08:44:24Z</dc:date>
  </entry>
</feed>
