-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
105 lines (87 loc) · 2.88 KB
/
build.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
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
104
105
plugins {
id 'java'
id 'org.jetbrains.intellij.platform' version '2.0.0'
id 'org.sonarqube' version '5.1.0.4882'
id 'jacoco'
id 'net.ltgt.errorprone' version '4.0.1'
id 'com.diffplug.spotless' version '6.25.0'
}
group 'no.hvl.tk'
version '2.3.5'
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
intellijPlatform {
instrumentationTools()
intellijIdeaCommunity('2024.2')
bundledPlugin('com.intellij.java')
}
// https://mvnrepository.com/artifact/net.sourceforge.plantuml/plantuml
implementation group: 'net.sourceforge.plantuml', name: 'plantuml', version: '1.2023.10'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
// Websocket server and server container dependencies
// https://mvnrepository.com/artifact/jakarta.websocket/jakarta.websocket-api
compileOnly group: 'jakarta.websocket', name: 'jakarta.websocket-api', version: '2.1.1'
// https://mvnrepository.com/artifact/org.glassfish.tyrus/tyrus-server
implementation group: 'org.glassfish.tyrus', name: 'tyrus-server', version: '2.1.4'
// https://mvnrepository.com/artifact/org.glassfish.tyrus/tyrus-container-grizzly-server
implementation group: 'org.glassfish.tyrus', name: 'tyrus-container-grizzly-server', version: '2.1.4'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.0'
testImplementation 'org.hamcrest:hamcrest:3.0'
testImplementation 'org.mockito:mockito-core:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.10.1'
errorprone('com.google.errorprone:error_prone_core:2.16')
}
patchPluginXml {
changeNotes = '''Update to 2025.1'''
untilBuild.set("251.*")
}
test {
useJUnitPlatform()
jacoco {
includeNoLocationClasses = true
excludes = ['jdk.internal.*']
}
}
tasks.runIde {
jvmArgs('--add-exports', 'java.base/jdk.internal.vm=ALL-UNNAMED')
}
tasks.named('sonar').configure {
dependsOn jacocoTestReport
}
spotless {
java {
googleJavaFormat()
formatAnnotations()
}
}
jacocoTestReport {
classDirectories.setFrom(instrumentCode)
reports {
xml.required = true
}
}
jacocoTestCoverageVerification {
classDirectories.setFrom(instrumentCode)
}
sonar {
properties {
property 'sonar.projectKey', 'timKraeuter_VisualDebugger'
property 'sonar.organization', 'timkraeuter'
property 'sonar.host.url', 'https://sonarcloud.io'
}
}
tasks.compileTestJava {
// Ignore manuel tests.
options.errorprone.excludedPaths = '.*/manueltests/.*'
}