Skip to content

Files

gradle-multimodule

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023
Mar 26, 2024
Mar 26, 2024
Nov 17, 2023
Nov 17, 2023
Nov 17, 2023

SonarScanner for Multi-Module Java Gradle Project

This example demonstrates how to analyze a multi-module Java project with Gradle.

Prerequisites

  • SonarQube 9.9 LTS or Latest
  • A gradle wrapper is included that bundles gradle. All other required plugins will be pulled by gradle as needed.

Usage

Run the following command (updating the sonar.host.url property as appropriate):

  • On Unix-like systems:
  ./gradlew build -Dsonar.host.url=http://myhost:9000 sonar
  • On Windows:
  .\gradle.bat build -Dsonar.host.url=http://myhost:9000 sonar