-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
62 lines (52 loc) · 1.32 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
buildscript {
ext {
applicationDefaultJvmArgs = ['-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005']
spotbugsVersion = '1.6.8'
toolVersion = '3.1.10'
}
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
}
plugins {
id 'java'
id 'idea'
id 'org.springframework.boot' version '3.3.5'
id 'io.spring.dependency-management' version '1.1.6'
id 'net.ltgt.errorprone' version '4.1.0'
//id 'com.github.spotbugs' version '1.6.8' apply false
id 'de.aaschmid.cpd' version '3.3'
id "org.sonarqube" version "5.1.0.4882"
}
group = 'com.poseidon'
version = '0.0.1-SNAPSHOT'
repositories {
mavenCentral()
}
apply from: 'gradle/dependencies.gradle'
apply from: 'gradle/staticCodeAnalysis.gradle'
test {
useJUnitPlatform()
}
jar {
enabled = false
}
/*tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("-parameters")
}
compileJava {
options.compilerArgs << '-parameters'
}
tasks.withType(JavaCompile) {
options.compilerArgs << '-parameters'
}*/
tasks.withType(JavaCompile) {
configure(options) {
options.compilerArgs << '-parameters'
}
}
test.dependsOn checkstyleMain
test.dependsOn checkstyleTest
bootRun.dependsOn checkstyleMain
check.dependsOn(cpdCheck, pmdMain)