-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
67 lines (57 loc) · 1.46 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
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java-library-distribution'
if (hasProperty('runWithDependencyCheck')) {
apply plugin: org.owasp.dependencycheck.gradle.DependencyCheckPlugin
check.dependsOn dependencyCheckAnalyze
dependencyCheck {
format = 'HTML'
failBuildOnCVSS = 8
suppressionFile='./dependencyCheck-suppression.xml'
}
}
group = 'io.elastic'
task downloadDependencies() {
description 'Download all dependencies to the Gradle cache'
doLast {
configurations.findAll { it.canBeResolved }.files
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
java.getDestinationDirectory().set(file('build/classes/main'))
}
test {
java.getDestinationDirectory().set(file('build/classes/test'))
}
}
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
url "https://repo1.maven.org/maven2"
}
mavenCentral()
mavenLocal()
}
dependencies {
implementation "io.elastic:sailor-jvm:4.0.1"
implementation "org.glassfish.jersey.core:jersey-client:2.25.1"
implementation "org.glassfish.jersey.media:jersey-media-json-processing:2.25.1"
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.owasp:dependency-check-gradle:7.1.0.1'
}
}
wrapper {
gradleVersion = '7.5.1'
}