-
Notifications
You must be signed in to change notification settings - Fork 21
/
settings.gradle.kts
95 lines (82 loc) · 4.76 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
pluginManagement {
repositories {
gradlePluginPortal()
}
val kotlinVersion: String by settings
plugins {
id("org.jetbrains.kotlin.jvm") version kotlinVersion
}
}
rootProject.name = "kotlin"
include("sonar-kotlin-api")
include("sonar-kotlin-test-api")
include("sonar-kotlin-checks")
include("sonar-kotlin-external-linters")
include("sonar-kotlin-surefire")
include("sonar-kotlin-metrics")
include("sonar-kotlin-plugin")
include("sonar-kotlin-gradle")
include("its:plugin")
include("its:ruling")
include("kotlin-checks-test-sources")
include("utils-kotlin")
dependencyResolutionManagement {
versionCatalogs {
val kotlinVersion: String by extra
val analyzerCommonsVersionStr = "2.16.0.3141"
val sonarPluginApi = "10.3.0.1951"
val slf4jApi = "1.7.30"
create("libs") {
val analyzerCommons = version("analyzerCommons", analyzerCommonsVersionStr)
val gson = version("gson", "2.10.1")
val staxmate = version("staxmate", "2.4.1")
library("gson", "com.google.code.gson", "gson").versionRef(gson)
library("kotlin-compiler", "org.jetbrains.kotlin", "kotlin-compiler").version(kotlinVersion)
library("sonar-analyzer-commons", "org.sonarsource.analyzer-commons", "sonar-analyzer-commons").versionRef(analyzerCommons)
library("sonar-analyzer-commons-recognizers", "org.sonarsource.analyzer-commons", "sonar-analyzer-recognizers")
.versionRef(analyzerCommons)
library("sonar-performance-measure", "org.sonarsource.analyzer-commons", "sonar-performance-measure")
.versionRef(analyzerCommons)
library("sonar-plugin-api", "org.sonarsource.api.plugin", "sonar-plugin-api").version(sonarPluginApi)
library("slf4j-api", "org.slf4j", "slf4j-api").version(slf4jApi)
library("sonar-regex-parsing", "org.sonarsource.analyzer-commons", "sonar-regex-parsing").versionRef(analyzerCommons)
library("sonar-xml-parsing", "org.sonarsource.analyzer-commons", "sonar-xml-parsing").versionRef(analyzerCommons)
library("staxmate", "com.fasterxml.staxmate", "staxmate").versionRef(staxmate)
}
create("utilLibs") {
val detekt = version("detekt", "1.23.3")
val jcommander = version("jcommander", "1.82")
val ktlint = version("ktlint", "1.0.1")
library("detekt-api", "io.gitlab.arturbosch.detekt", "detekt-api").versionRef(detekt)
library("detekt-cli", "io.gitlab.arturbosch.detekt", "detekt-cli").versionRef(detekt)
library("detekt-core", "io.gitlab.arturbosch.detekt", "detekt-core").versionRef(detekt)
library("jcommander", "com.beust", "jcommander").versionRef(jcommander)
library("ktlint-core", "com.pinterest.ktlint", "ktlint-rule-engine-core").versionRef(ktlint)
library("ktlint-ruleset-standard", "com.pinterest.ktlint", "ktlint-ruleset-standard").versionRef(ktlint)
bundle("detekt", listOf("detekt-cli", "detekt-core", "detekt-api"))
bundle("ktlint", listOf("ktlint-core", "ktlint-ruleset-standard"))
}
create("testLibs") {
val analyzerCommons = version("analyzerCommons", analyzerCommonsVersionStr)
val assertj = version("assertj", "3.24.2")
val junit = version("junit", "5.10.1")
val mockito = version("mockito", "5.7.0")
val mockk = version("mockk", "1.13.3")
val orchestrator = version("orchestrator", "5.0.0.2065")
val sonarlint = version("sonarlint", "9.5.0.76302")
val sonarqube = version("sonarqube", "10.0.0.68432")
library("assertj-core", "org.assertj", "assertj-core").versionRef(assertj)
library("junit-jupiter", "org.junit.jupiter", "junit-jupiter").versionRef(junit)
library("mockito-core", "org.mockito", "mockito-core").versionRef(mockito)
library("mockk", "io.mockk", "mockk").versionRef(mockk)
library("sonar-analyzer-test-commons", "org.sonarsource.analyzer-commons", "sonar-analyzer-test-commons")
.versionRef(analyzerCommons)
library("sonar-orchestrator-junit5", "org.sonarsource.orchestrator", "sonar-orchestrator-junit5").versionRef(orchestrator)
library("sonar-plugin-api-impl", "org.sonarsource.sonarqube", "sonar-plugin-api-impl").versionRef(sonarqube)
library("sonar-plugin-api-test-fixtures", "org.sonarsource.api.plugin", "sonar-plugin-api-test-fixtures")
.version(sonarPluginApi)
library("sonar-ws", "org.sonarsource.sonarqube", "sonar-ws").versionRef(sonarqube)
library("sonarlint-core", "org.sonarsource.sonarlint.core", "sonarlint-core").versionRef(sonarlint)
}
}
}