-
Notifications
You must be signed in to change notification settings - Fork 31
/
settings.gradle
75 lines (66 loc) · 2.88 KB
/
settings.gradle
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
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
if (new File(rootDir, 'private/build.gradle').exists()) {
maven {
name = "artifactory"
url = uri("https://repox.jfrog.io/repox/sonarsource")
}
}
}
}
plugins {
id 'com.gradle.develocity' version '3.18.2'
}
develocity {
server = 'https://develocity.sonar.build'
}
def isCI = System.getenv('CI') != null
buildCache {
local {
enabled = !isCI
}
remote(develocity.buildCache) {
enabled = true
push = isCI
}
}
dependencyResolutionManagement {
// slf4j is provided by SQ, SC or SL, should be aligned with sonar-plugin-api
def slf4jApiVersion = '1.7.30'
def pluginApiVersion = '10.10.0.2391'
def sonarqubeVersion = '10.6.0.92116'
def sonarlintVersion = '10.4.2.78884'
def analyzerCommonsVersion = '2.16.0.3141'
versionCatalogs {
libs {
library("sonar-plugin-api", "org.sonarsource.api.plugin", "sonar-plugin-api").version(pluginApiVersion)
library("sonar-analyzer-commons", "org.sonarsource.analyzer-commons", "sonar-analyzer-commons").version(analyzerCommonsVersion)
library("sonar-xml-parsing", "org.sonarsource.analyzer-commons", "sonar-xml-parsing").version(analyzerCommonsVersion)
library("sonarlint-core", "org.sonarsource.sonarlint.core", "sonarlint-core").version(sonarlintVersion)
library("slf4j-api", "org.slf4j", "slf4j-api").version(slf4jApiVersion)
library("logback-classic", "ch.qos.logback", "logback-classic").version("1.2.13")
library("jsr305", "com.google.code.findbugs", "jsr305").version("3.0.2")
library("minimal-json", "com.eclipsesource.minimal-json", "minimal-json").version("0.9.5")
library("antlr4", "org.antlr","antlr4").version("4.13.2")
}
testLibs {
library("sonar-analyzer-test-commons", "org.sonarsource.analyzer-commons", "sonar-analyzer-test-commons").version(analyzerCommonsVersion)
library("sonar-plugin-api-impl", "org.sonarsource.sonarqube", "sonar-plugin-api-impl").version(sonarqubeVersion)
library("junit-jupiter-api", "org.junit.jupiter", "junit-jupiter-api").version("5.11.0")
library("junit-jupiter-engine", "org.junit.jupiter", "junit-jupiter-engine").version("5.11.0")
library("junit", "junit", "junit").version("4.13.2")
library("mockito-core", "org.mockito", "mockito-core").version("5.13.0")
library("assertj-core", "org.assertj", "assertj-core").version("3.26.3")
library("classgraph", "io.github.classgraph", "classgraph").version("4.8.162")
}
}
}
rootProject.name = 'slang'
include 'slang-api'
include 'slang-testing'
include 'slang-antlr'
include 'slang-checks'
include 'slang-plugin'
include 'checkstyle-import'