Moved Sonarqube to GitHub action.
This commit is contained in:
parent
2bb7c4db63
commit
f548b4ce5b
6 changed files with 46 additions and 33 deletions
|
@ -1,5 +1,6 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
|
||||
plugins {
|
||||
jacoco
|
||||
|
@ -8,7 +9,7 @@ plugins {
|
|||
`maven-publish`
|
||||
signing
|
||||
id("com.github.ben-manes.versions") version "0.38.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.16.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.17.0"
|
||||
id("org.jetbrains.dokka") version "1.4.32"
|
||||
id("org.sonarqube") version "3.2.0"
|
||||
}
|
||||
|
@ -51,13 +52,15 @@ java {
|
|||
}
|
||||
|
||||
detekt {
|
||||
toolVersion = "main-SNAPSHOT"
|
||||
//toolVersion = "main-SNAPSHOT"
|
||||
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
||||
}
|
||||
|
||||
sonarqube {
|
||||
properties {
|
||||
property("sonar.projectKey", "ethauvin_pinboard-poster")
|
||||
property("sonar.projectKey", "ethauvin_$name")
|
||||
property("sonar.organization", "ethauvin-github")
|
||||
property("sonar.host.url", "https://sonarcloud.io")
|
||||
property("sonar.sourceEncoding", "UTF-8")
|
||||
}
|
||||
}
|
||||
|
@ -74,13 +77,14 @@ tasks {
|
|||
withType<Test> {
|
||||
testLogging {
|
||||
exceptionFormat = TestExceptionFormat.FULL
|
||||
events = setOf(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
|
||||
}
|
||||
|
||||
useTestNG()
|
||||
}
|
||||
|
||||
withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
withType<GenerateMavenPom> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue