<?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>Configure SonarQube in my workspace</title>
  <link rel="self" href="https://liferay.dev/nl/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=104477677" />
  <subtitle>Configure SonarQube in my workspace</subtitle>
  <id>https://liferay.dev/nl/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=104477677</id>
  <updated>2026-05-07T16:43:33Z</updated>
  <dc:date>2026-05-07T16:43:33Z</dc:date>
  <entry>
    <title>RE: Configure SonarQube in my workspace</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119497088" />
    <author>
      <name>Rafal Pydyniak</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119497088</id>
    <updated>2020-06-27T05:28:54Z</updated>
    <published>2020-06-27T05:28:54Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello,&lt;br&gt;I know it's an old topic but if that&amp;nbsp;helps you can just run it like:&amp;nbsp;&lt;pre&gt;&lt;code&gt;./gradlew sonarqube \
  -Dsonar.projectKey=test2 \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.login=115ee4c271411c118e7935ee705bdebcdf714b4a&lt;/code&gt;&lt;/pre&gt;you just need to provide your projectKey, url of your SonarQube and your token as login (the one you generated when you created a project - if you don't have it you can always generate it again in your account settings in security tab)The only thing you need for that is to have sonarqube plugin in build.gradle&lt;pre&gt;&lt;code&gt;plugins {
  id "org.sonarqube" version "2.7"
}&lt;/code&gt;&lt;/pre&gt;I used to use that (before Jenkins) and that worked but I've only tested in on particular modules not the whole project (just because we wanted to have few SonarQube projects for one workspace because we have quite a lot modules).If perhaps you wanted to use Jenkins instead you can check this &lt;a href="https://pydyniak.com/continuous-integration-and-quality-inspection-for-liferay-7/"&gt;S&lt;/a&gt;&lt;a href="https://pydyniak.com/continuous-integration-and-quality-inspection-for-liferay-7/"&gt;onarQube with Jenkins and Liferay integration tutorial&lt;/a&gt;&lt;br&gt;Best regards and hope that helpsRafał Pydyniak&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Rafal Pydyniak</dc:creator>
    <dc:date>2020-06-27T05:28:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Configure SonarQube in my workspace</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119191293" />
    <author>
      <name>Lokesh Sharma</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119191293</id>
    <updated>2020-05-19T07:56:20Z</updated>
    <published>2020-05-19T07:56:20Z</published>
    <summary type="html">Hi Vishal,&lt;br /&gt;Can you please provide you gradle file Facing same issue</summary>
    <dc:creator>Lokesh Sharma</dc:creator>
    <dc:date>2020-05-19T07:56:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Configure SonarQube in my workspace</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117567897" />
    <author>
      <name>Vishal Panchal</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117567897</id>
    <updated>2019-10-25T09:09:14Z</updated>
    <published>2019-10-25T09:09:14Z</published>
    <summary type="html">Thanks Sushil, that worked.</summary>
    <dc:creator>Vishal Panchal</dc:creator>
    <dc:date>2019-10-25T09:09:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Configure SonarQube in my workspace</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=104482258" />
    <author>
      <name>Sushil Patidar</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=104482258</id>
    <updated>2018-02-26T05:37:43Z</updated>
    <published>2018-02-26T05:37:43Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;i think configuration of following properties in each project may solve your issue.&lt;br /&gt;sonar.projectKey         [${project.group}:]${project.name} for root module&lt;br /&gt;                                         &amp;lt;root module key&amp;gt;:&amp;lt;module path&amp;gt; for submodules &lt;br /&gt;&lt;br /&gt;sonar.projectName           ${project.name}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards</summary>
    <dc:creator>Sushil Patidar</dc:creator>
    <dc:date>2018-02-26T05:37:43Z</dc:date>
  </entry>
  <entry>
    <title>Configure SonarQube in my workspace</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=104477676" />
    <author>
      <name>Patricia Hevia</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=104477676</id>
    <updated>2018-02-25T17:37:28Z</updated>
    <published>2018-02-25T17:37:28Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello,&lt;br&gt;&lt;br&gt;I am working with Liferay DXP and I would like integrate SonarQube in my workspace, I am using gradle.&lt;br&gt;&lt;br&gt;My workspace is called: test-workpace&lt;br&gt;&lt;br&gt;My gradle.properies file (path: test-workspace/gradle.properties) is:&lt;br&gt;&lt;pre&gt;&lt;code&gt;systemProp.sonar.host.url=http://localhost:9000
systemProp.sonar.sourceEncoding=UTF-8
systemProp.sonar.forceAuthentication=true
systemProp.sonar.login=&amp;lt;mytoken&amp;gt;

# Definición de variables para el proyecto.
description = 'Gradle - Sample Project'
group = 'com.test.sonarqube.gradle'
version = '1.0.0'&amp;lt;/mytoken&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;My build.gradle file (path: test-workspace/build.gradle) is:&lt;br&gt;&lt;pre&gt;&lt;code&gt;buildscript {
        repositories {
                mavenLocal()
                jcenter()
                maven {
                        url "https://plugins.gradle.org/m2/"
                }
        }
        dependencies {
                classpath group: "org.sonarsource.scanner.gradle", name:"sonarqube-gradle-plugin", version:"2.5"
        }
}
group = 'com.test.sonarqube.gradle'
apply plugin: "org.sonarqube"
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;When I execute &lt;strong&gt;gradle sonarqube&lt;/strong&gt; all workspace is scanned but  I would like to configure each modules like a project in SonarQube.&lt;br&gt;&lt;br&gt;Someone know how to configure gradle files to do it?.&lt;br&gt;&lt;br&gt;Thank you very much!&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Patricia Hevia</dc:creator>
    <dc:date>2018-02-25T17:37:28Z</dc:date>
  </entry>
</feed>
