<?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>Issue with Adding Dependency in Gradle in PrimeFaces gradle 11.0.0</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122323095" />
  <subtitle>Issue with Adding Dependency in Gradle in PrimeFaces gradle 11.0.0</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122323095</id>
  <updated>2026-04-05T12:22:59Z</updated>
  <dc:date>2026-04-05T12:22:59Z</dc:date>
  <entry>
    <title>Issue with Adding Dependency in Gradle in PrimeFaces gradle 11.0.0</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122323094" />
    <author>
      <name>Sumair Ahmed</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122323094</id>
    <updated>2024-01-24T06:31:09Z</updated>
    <published>2024-01-05T07:56:37Z</published>
    <summary type="html">&lt;p&gt;I am currently working on a project using PrimeFaces, and I am
  encountering a problem when trying to add another project as a
  dependency in Gradle. Here are the details:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;
      &lt;strong&gt;Project Structure:&lt;/strong&gt;
    &lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;I have a multi-module project.&lt;/li&gt;
      &lt;li&gt;The target project I want to include is located at &lt;code&gt;:modules:x-portlet:x-portlet-api&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;I have created module project using MVC template and then add
        PrimeFaces plugins and change the folder structure according to primefaces.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;
      &lt;strong&gt;Dependency Statement:&lt;/strong&gt;
    &lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;I am using the following statement in my
        &lt;code&gt;build.gradle&lt;/code&gt; file to add the dependency:    &lt;p&gt;
          &lt;code&gt;compileOnly
            project(&amp;quot;:modules:x-portlet:x-portlet-api&amp;quot;) &lt;/code&gt;
        &lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;
      &lt;strong&gt;Issue:&lt;/strong&gt;
    &lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;After running &lt;code&gt;compileOnly project()&lt;/code&gt;, the project
        is not added to the dependencies, and no error is displayed.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;
      &lt;strong&gt;Troubleshooting Steps Taken:&lt;/strong&gt;
    &lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;I have confirmed that the path is correct.&lt;/li&gt;
      &lt;li&gt;The target project is a valid Gradle project with a
        &lt;code&gt;build.gradle&lt;/code&gt; file.&lt;/li&gt;
      &lt;li&gt;Checked for typos and syntax errors in my
        &lt;code&gt;build.gradle&lt;/code&gt; file.&lt;/li&gt;
      &lt;li&gt;Tried by using API instead of CompileOnly.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;
      &lt;strong&gt;Request for Assistance:&lt;/strong&gt;
    &lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;Can you please guide me on how to correctly add the
        &lt;code&gt;x-portlet-api&lt;/code&gt; project as a dependency in my Gradle project?&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;
      &lt;strong&gt;Additional Information:&lt;/strong&gt;
    &lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;I am using PrimeFaces version 11.0.0.&lt;/li&gt;
      &lt;li&gt;I am using Liferay version portal 7.4 GA 105.&lt;/li&gt;
      &lt;li&gt;com.liferay.gradle.plugins.workspace = 9.0.12&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;PrimeFaces build.gradle:&lt;/strong&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
  &lt;p&gt;repositories {&lt;br&gt;      mavenCentral()&lt;br&gt;      &lt;br&gt; }&lt;/p&gt;
  &lt;p&gt;dependencies {&lt;br&gt;     compileOnly group:
    &amp;quot;com.liferay.portal&amp;quot;, name:
    &amp;quot;release.portal.api&amp;quot;&lt;br&gt;     &lt;br&gt;     compileOnly
    project(&amp;quot;:modules:x-portlet:x-portlet-api&amp;quot;)&lt;br&gt;   &lt;br&gt;   
     implementation group: 'org.primefaces', name: 'primefaces',
    version: '11.0.0'&lt;br&gt;     implementation group: 'com.liferay.faces',
    name: 'com.liferay.faces.bridge.ext', version: '8.0.1'&lt;br&gt;   
     implementation group: 'com.liferay.faces', name:
    'com.liferay.faces.bridge.impl', version: '6.0.0'&lt;br&gt;   
     implementation group: 'com.liferay.faces', name:
    'com.liferay.faces.portal', version: '6.0.0'&lt;br&gt;     implementation
    group: 'com.liferay.faces', name: 'com.liferay.faces.util', version:
    '4.0.0'&lt;br&gt;     implementation group: 'org.glassfish', name:
    'javax.faces', version: '2.4.0'    &lt;br&gt;             &lt;br&gt; }&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
  &lt;strong&gt;Thank you for your assistance!&lt;/strong&gt;
&lt;/p&gt;</summary>
    <dc:creator>Sumair Ahmed</dc:creator>
    <dc:date>2024-01-05T07:56:37Z</dc:date>
  </entry>
</feed>
