Skip to content

Commit

Permalink
Fix SQ issues pre-release (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-beleites-sonarsource authored Nov 30, 2023
1 parent 4c9a17c commit 93c18ba
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,14 @@ artifactory {
}

tasks.register<CreateKotlinRuleStubsTask>("setupRuleStubs") {
group = "Rules"
description = "Generate required stubs for a new Kotlin rule"
finalizedBy(tasks.findByPath(":generateRuleMetadata"))
}

tasks.register<CreateKotlinGradleRuleStubsTask>("setupGradleRuleStubs") {
group = "Rules"
description = "Generate required stubs for a new Kotlin Gradle DSL rule"
finalizedBy(tasks.findByPath(":generateRuleMetadata"))
}

Expand Down
3 changes: 1 addition & 2 deletions sonar-kotlin-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@ dependencies {
implementation(libs.gson)
implementation(libs.sonar.analyzer.commons.recognizers)

testRuntimeOnly(testLibs.junit.engine)
testImplementation(libs.slf4j.api)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.junit.params)
testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk)
testImplementation(testLibs.classgraph)
testImplementation(testLibs.sonar.analyzer.test.commons)
testImplementation(testLibs.sonar.plugin.api.impl)
testImplementation(testLibs.sonar.plugin.api.test.fixtures)

testImplementation(project(":sonar-kotlin-test-api"))
}

Expand Down
2 changes: 1 addition & 1 deletion sonar-kotlin-checks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ dependencies {

implementation(project(":sonar-kotlin-api"))

testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.junit.params)
testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk)
Expand Down
2 changes: 1 addition & 1 deletion sonar-kotlin-external-linters/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ dependencies {

implementation(project(":sonar-kotlin-api"))

testRuntimeOnly(testLibs.junit.engine)
testImplementation(libs.slf4j.api)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.junit.params)
testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk)
Expand Down
2 changes: 1 addition & 1 deletion sonar-kotlin-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ dependencies {
implementation(project(":sonar-kotlin-api"))
implementation(project(":sonar-kotlin-surefire"))

testRuntimeOnly(testLibs.junit.engine)
testImplementation(libs.slf4j.api)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.junit.params)
testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk)
Expand Down
2 changes: 1 addition & 1 deletion sonar-kotlin-metrics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ dependencies {
implementation(project(":sonar-kotlin-api"))
implementation(project(":sonar-kotlin-checks"))

testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.junit.params)
testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk)
Expand Down
2 changes: 1 addition & 1 deletion sonar-kotlin-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ dependencies {
implementation(project(":sonar-kotlin-surefire"))
implementation(project(":sonar-kotlin-checks"))

testRuntimeOnly(testLibs.junit.engine)
testImplementation(libs.slf4j.api)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.junit.params)
testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk)
Expand Down
2 changes: 1 addition & 1 deletion sonar-kotlin-surefire/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ dependencies {

implementation(project(":sonar-kotlin-api"))

testRuntimeOnly(testLibs.junit.engine)
testImplementation(libs.slf4j.api)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.junit.params)
testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk)
Expand Down
2 changes: 1 addition & 1 deletion utils-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ dependencies {
implementation(libs.gson)
implementation(utilLibs.jcommander)

testRuntimeOnly(testLibs.junit.engine)
testImplementation(testLibs.junit.api)
testImplementation(testLibs.assertj.core)
testImplementation(libs.sonar.plugin.api)

testRuntimeOnly(testLibs.junit.engine)
implementation(project(":sonar-kotlin-external-linters"))
}

Expand Down

0 comments on commit 93c18ba

Please sign in to comment.