Moved Sonarqube to GitHub action.
This commit is contained in:
parent
e978429e5a
commit
54f0d0ae4c
5 changed files with 38 additions and 24 deletions
|
@ -1,6 +1,7 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import java.net.URL
|
||||
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("net.thauvin.erik.gradle.semver") version "1.0.4"
|
||||
id("org.jetbrains.dokka") version "1.4.32"
|
||||
id("org.jetbrains.kotlin.jvm") version "1.5.0"
|
||||
|
@ -51,9 +52,9 @@ dependencies {
|
|||
implementation("com.squareup.okhttp3:okhttp:${versions.okhttp}")
|
||||
implementation("com.squareup.okhttp3:logging-interceptor:${versions.okhttp}")
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.0")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1")
|
||||
|
||||
testImplementation("org.mockito:mockito-core:3.9.0")
|
||||
testImplementation("org.mockito:mockito-core:3.10.0")
|
||||
testImplementation("org.testng:testng:7.4.0")
|
||||
}
|
||||
|
||||
|
@ -64,7 +65,7 @@ kapt {
|
|||
}
|
||||
|
||||
detekt {
|
||||
toolVersion = "main-SNAPSHOT"
|
||||
//toolVersion = "main-SNAPSHOT"
|
||||
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,8 @@ java {
|
|||
sonarqube {
|
||||
properties {
|
||||
property("sonar.projectKey", "ethauvin_$name")
|
||||
property("sonar.organization", "ethauvin-github")
|
||||
property("sonar.host.url", "https://sonarcloud.io")
|
||||
property("sonar.sourceEncoding", "UTF-8")
|
||||
}
|
||||
}
|
||||
|
@ -93,13 +96,14 @@ tasks {
|
|||
withType<Test> {
|
||||
testLogging {
|
||||
exceptionFormat = TestExceptionFormat.FULL
|
||||
events = setOf(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
|
||||
}
|
||||
|
||||
useTestNG()
|
||||
}
|
||||
|
||||
withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
withType<GenerateMavenPom> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue