forked from elasticio/petstore-component-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (49 loc) · 1.32 KB
/
build.gradle
File metadata and controls
58 lines (49 loc) · 1.32 KB
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
plugins {
id 'org.cyclonedx.bom' // CycloneDX SBOM Generator Plugin
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java-library-distribution'
cyclonedxBom {
// includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration)
includeConfigs += ["runtimeClasspath"]
// skipConfigs is a list of configuration names to exclude when generating the BOM
skipConfigs += ["compileClasspath", "testCompileClasspath"]
}
group = 'io.elastic'
version = project.findProperty('projVersion') ?: '2.1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
java.outputDir = file('build/classes/main')
}
test {
java.outputDir = file('build/classes/test')
}
}
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
url "https://repo1.maven.org/maven2"
}
mavenCentral()
mavenLocal()
}
dependencies {
compile "io.elastic:sailor-jvm:3.1.0"
compile "org.glassfish.jersey.core:jersey-client:2.25.1"
compile "org.glassfish.jersey.media:jersey-media-json-processing:2.25.1"
}
uploadArchives {
repositories {
mavenLocal()
}
}
wrapper {
gradleVersion = '5.4.1'
}