forked from aws/aws-codeguru-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
107 lines (80 loc) · 2.63 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.6"
}
}
plugins {
id 'java'
id 'application'
id "com.github.spotbugs" version "5.0.6"
id 'checkstyle'
}
repositories {
mavenCentral()
}
defaultTasks 'clean', 'check', 'installDist'
version = '0.2.3'
jar.archiveName = "${jar.baseName}.${jar.extension}"
distZip.archiveName = "${jar.baseName}.zip"
application {
mainClass = 'com.amazonaws.gurureviewercli.Main'
}
dependencies {
implementation 'software.amazon.awssdk:s3:2.17.113'
implementation 'software.amazon.awssdk:sts:2.17.113'
implementation 'software.amazon.awssdk:codegurureviewer:2.17.113'
implementation 'software.amazon.awssdk:sdk-core:2.17.113'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.0'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.0'
implementation 'com.beust:jcommander:1.81'
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r'
implementation 'com.contrastsecurity:java-sarif:2.0'
implementation 'org.apache.logging.log4j:log4j-core:2.17.1'
implementation 'org.slf4j:slf4j-nop:2.0.0-alpha5'
// For Java 9+
implementation 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'org.commonmark:commonmark:0.18.1'
implementation 'org.beryx:text-io:3.4.1'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation("com.google.guava:guava:31.1-jre")
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testCompileOnly 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.mockito:mockito-junit-jupiter:4.2.0'
}
test {
useJUnitPlatform()
}
apply plugin: 'checkstyle'
checkstyle {
toolVersion = '8.37'
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
ignoreFailures = true
}
checkstyleMain {
source = 'src/main/java'
}
checkstyleTest {
source = 'src/test/java'
}
/**
* SpotBugs Plugin
*/
spotbugs {
showStackTraces = false
reportsDir = file("$buildDir/reports/spotbugs")
ignoreFailures = false
includeFilter = file("config/spotbugs/spotbugs-exclude.xml")
showProgress = true
effort = 'default'
reportLevel = 'default'
}