forked from spinscale/elasticsearch-ecommerce-search-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (65 loc) · 2.45 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
plugins {
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "application"
id "java"
id "net.ltgt.apt-eclipse" version "0.21"
id "net.ltgt.apt-idea" version "0.21"
}
version "0.1"
group "elasticsearch.ecommerce.app"
repositories {
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}
dependencyManagement {
imports {
mavenBom 'io.micronaut:micronaut-bom:1.3.4'
}
}
configurations {
// for dependencies that are needed for development only
developmentOnly
}
dependencies {
annotationProcessor "io.micronaut:micronaut-inject-java"
annotationProcessor "io.micronaut:micronaut-validation"
implementation "io.micronaut:micronaut-http-client"
implementation "io.micronaut:micronaut-inject"
implementation "io.micronaut:micronaut-validation"
implementation "io.micronaut:micronaut-runtime"
implementation "io.micronaut:micronaut-http-server-netty"
implementation "io.micronaut:micronaut-management"
implementation "javax.annotation:javax.annotation-api"
implementation 'com.github.javafaker:javafaker:1.0.2'
implementation 'org.elasticsearch.client:elasticsearch-rest-high-level-client:7.17.10'
implementation 'ch.qos.logback:logback-classic:1.2.9'
// https://mvnrepository.com/artifact/com.aerospike/aerospike-client
implementation group: 'com.aerospike', name: 'aerospike-client', version: '6.1.10'
// https://mvnrepository.com/artifact/io.netty/netty-all
implementation group: 'io.netty', name: 'netty-all', version: '4.1.93.Final'
testAnnotationProcessor "io.micronaut:micronaut-inject-java"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "io.micronaut.test:micronaut-test-junit5"
testImplementation "org.junit.jupiter:junit-jupiter-engine"
}
test.classpath += configurations.developmentOnly
mainClassName = "elasticsearch.ecommerce.app.Application"
// use JUnit 5 platform
test {
useJUnitPlatform()
}
shadowJar {
mergeServiceFiles()
}
run.classpath += configurations.developmentOnly
run.jvmArgs('-noverify', '-XX:TieredStopAtLevel=1', '-Dcom.sun.management.jmxremote')
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.compilerArgs.add('-parameters')
options.compilerArgs.add('-Xlint:deprecation')
}
java {
sourceCompatibility = JavaVersion.VERSION_14
targetCompatibility = JavaVersion.VERSION_14
}