forked from OpenLiberty/liberty-bikes-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (50 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
apply plugin: 'liberty'
apply plugin: 'war'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.wasdev.wlp.gradle.plugins:liberty-gradle-plugin:2.6.5'
}
}
ext {
httpPort = 8083
httpsPort = 8275
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
providedCompile group: 'org.eclipse.microprofile', name: 'microprofile', version: '3.0'
providedCompile group: 'jakarta.platform', name: 'jakarta.jakartaee-api', version: '8.0.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.eclipse', name: 'yasson', version: '1.0.5'
libertyRuntime group: 'io.openliberty', name: 'openliberty-runtime', version: '[19.0.0.9,)'
}
eclipse {
classpath {
defaultOutputDir = file('build/classes/java/main')
file {
whenMerged {
entries.findAll { it.path.startsWith('src/main') }
.each { it.output = "build/classes/java/main" }
}
}
}
}
liberty {
server {
name = "ai-service"
dropins = [war]
bootstrapProperties = ['httpPort': httpPort, 'httpsPort': httpsPort]
}
}
clean.dependsOn 'libertyStop'
libertyDebug.dependsOn 'libertyStop'
libertyStart.dependsOn 'libertyStop', 'test'
libertyRun.dependsOn 'libertyStop'
task debug { dependsOn 'libertyDebug' }
task start { dependsOn 'libertyStart' }
task stop { dependsOn 'libertyStop' }