Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add common code to sonarqube analysis
buildscript {
repositories {
// repos
}
dependencies {
// deps
}
}
plugins {
id("org.sonarqube") version "3.1.1"
}
sonarqube {
properties {
property("sonar.projectName", "PROJECT_NAME")
property("sonar.projectKey", "PROJECT_KEY")
property("sonar.login", "SONAR_TOKEN")
property("sonar.sources", "common/src/commonMain/kotlin") // Important line, add the common code
property("sonar.host.url", "SONARQUBE_URL")
property("sonar.links.homepage", "PROJECT_URL")
}
}
allprojects {
repositories {
// Your repos
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment