Build file tweaks

This commit is contained in:
Geert Bevin 2022-12-31 08:47:45 -05:00
parent b2a313e027
commit 73fcf2bf7c

View file

@ -12,6 +12,7 @@ base {
archivesName.set("urlencoder") archivesName.set("urlencoder")
version = "0.9-SNAPSHOT" version = "0.9-SNAPSHOT"
} }
java { java {
withJavadocJar() withJavadocJar()
withSourcesJar() withSourcesJar()
@ -23,16 +24,16 @@ java {
tasks.jacocoTestReport { tasks.jacocoTestReport {
reports { reports {
xml.required.set(true) xml.required.set(true)
html.required.set(true)
} }
} }
sonarqube { sonarqube {
properties { properties {
property("sonar.projectName", rootProject.name) property("sonar.projectName", rootProject.name)
property("sonar.projectKey", "gbevin_urlencoder") property("sonar.projectKey", "gbevin_${rootProject.name}")
property("sonar.organization", "gbevin") property("sonar.organization", "gbevin")
property("sonar.host.url", "https://sonarcloud.io") property("sonar.host.url", "https://sonarcloud.io")
property("sonar.sourceEncoding", "UTF-8")
} }
} }
repositories { repositories {