forked from SonarSource/sonar-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
103 lines (89 loc) · 5.46 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
96
97
98
99
100
101
102
103
pluginManagement {
repositories {
maven(url = "https://repox.jfrog.io/repox/plugins.gradle.org/")
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 {
/*
* We are knowingly using this versionCatalogs feature, as it improves dependency management drastically, even though it is still marked
* as unstable.
*/
@Suppress("UnstableApiUsage")
versionCatalogs {
val kotlinVersion: String by extra
val analyzerCommonsVersionStr = "2.5.0.1358"
val sonarPluginApi = "9.15.0.435"
create("libs") {
val analyzerCommons = version("analyzerCommons", analyzerCommonsVersionStr)
val gson = version("gson", "2.9.0")
val staxmate = version("staxmate", "2.4.0")
val gradleToolingApi = version("gradle-tooling-api", "7.5.1")
library("gson", "com.google.code.gson", "gson").versionRef(gson)
library("kotlin-compiler-embeddable", "org.jetbrains.kotlin", "kotlin-compiler-embeddable").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("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)
library("gradle-tooling-api","org.gradle", "gradle-tooling-api").versionRef(gradleToolingApi)
}
create("utilLibs") {
val detekt = version("detekt", "1.22.0")
val jcommander = version("jcommander", "1.81")
val ktlint = version("ktlint", "0.49.0")
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", "com.pinterest", "ktlint").versionRef(ktlint)
library("ktlint-core", "com.pinterest.ktlint", "ktlint-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", "ktlint-core", "ktlint-ruleset-standard"))
}
create("testLibs") {
val analyzerCommons = version("analyzerCommons", analyzerCommonsVersionStr)
val assertj = version("assertj", "3.23.1")
val classgraph = version("classgraph", "4.8.149")
val junit = version("junit", "5.8.2")
val mockito = version("mockito", "4.6.1")
val mockk = version("mockk", "1.12.4")
val orchestrator = version("orchestrator", "3.40.0.183")
val sonarlint = version("sonarlint", "8.16.0.67686")
val sonarqube = version("sonarqube", "10.0.0.68432")
library("assertj-core", "org.assertj", "assertj-core").versionRef(assertj)
library("classgraph", "io.github.classgraph", "classgraph").versionRef(classgraph)
library("junit-api", "org.junit.jupiter", "junit-jupiter-api").versionRef(junit)
library("junit-engine", "org.junit.jupiter", "junit-jupiter-engine").versionRef(junit)
library("junit-params", "org.junit.jupiter", "junit-jupiter-params").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", "org.sonarsource.orchestrator", "sonar-orchestrator").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)
}
}
}