-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (81 loc) · 2.15 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
buildscript {
ext {
javaeeVersion = '8.0'
wildflySwarmVersion = '2018.5.0'
junitPlatformVersion = '1.3.0'
junitJupiterVersion = '5.3.1'
}
repositories {
maven { url 'https://repository.jboss.org/nexus/content/groups/public-jboss/' }
mavenCentral()
jcenter()
}
dependencies {
classpath "org.wildfly.swarm:wildfly-swarm-gradle-plugin:$wildflySwarmVersion"
}
}
plugins {
id 'war'
id 'java'
id 'io.franzbecker.gradle-lombok' version '1.14'
id 'io.spring.dependency-management' version '1.0.6.RELEASE'
}
version = '1.0.0'
group = 'com.github.daggerok'
war {
archiveName 'wildfly-swarm-microservice'
}
apply plugin: 'wildfly-swarm'
version = '0.0.1'
group = 'daggerok'
repositories {
maven { url 'https://repository.jboss.org/nexus/content/groups/public-jboss/' }
maven { url 'http://repository.jboss.org/nexus/content/groups/public/' }
mavenCentral()
jcenter()
}
dependencyManagement {
imports {
mavenBom "javax:javaee-api:$javaeeVersion"
mavenBom "org.junit:junit-bom:$junitJupiterVersion"
mavenBom "org.wildfly.swarm:bom:$wildflySwarmVersion"
mavenBom "org.wildfly.swarm:bom-all:$wildflySwarmVersion"
}
}
lombok {
version = '1.18.2'
}
dependencies {
runtime "javax:javaee-api:$javaeeVersion"
compileOnly "javax:javaee-api:$javaeeVersion"
implementation 'org.wildfly.swarm:jaxrs-jsonp'
implementation 'org.wildfly.swarm:cdi'
implementation 'org.wildfly.swarm:ejb'
implementation 'org.wildfly.swarm:jpa'
implementation 'org.wildfly.swarm:flyway'
implementation 'com.h2database:h2:1.4.197'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
implementation 'io.vavr:vavr:0.9.2'
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'ch.qos.logback:logback-classic:1.2.3'
testImplementation 'org.wildfly.swarm:arquillian'
}
swarm {
properties {
swarm.http.port = 8080
}
executable = true
bundleDependencies = true
}
wrapper {
gradleVersion = '4.10.2'
distributionType = 'BIN'
}
defaultTasks 'wildfly-swarm-package'
test {
exclude '**/*SkipWithGradle*'
maxHeapSize = '1G'
failFast = false
useJUnit()
useJUnitPlatform()
}