-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
78 lines (67 loc) · 1.84 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
buildscript {
ext {
kotlinVersion = "1.1.61"
wildflySwarmVersion = "2018.5.0"
}
repositories {
// mavenLocal()
mavenCentral()
maven { url = "https://maven.repository.redhat.com/ga/" }
maven { url = "https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/" }
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath "io.spring.gradle:dependency-management-plugin:1.0.9.RELEASE"
classpath "org.wildfly.swarm:wildfly-swarm-gradle-plugin:$wildflySwarmVersion"
}
}
plugins {
id "war"
id "java"
id "idea"
id "eclipse"
}
apply plugin: "kotlin"
apply plugin: "io.spring.dependency-management"
apply plugin: "wildfly-swarm"
dependencyManagement {
imports {
mavenBom "org.wildfly.swarm:bom:$wildflySwarmVersion"
}
}
version = "0.0.1"
group = "daggerok"
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"//JavaVersion.VERSION_1_8
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"//JavaVersion.VERSION_1_8
}
repositories {
// mavenLocal()
mavenCentral()
maven { url = "https://maven.repository.redhat.com/ga/" }
maven { url = "https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/" }
}
task wrapper(type: Wrapper) {
// gradleVersion = "3.5.1"
gradleVersion = "4.10.3"
distributionType = "ALL"
}
dependencies {
compileOnly("javax:javaee-api:8.0")
compile("org.wildfly.swarm:microprofile")
compile("org.wildfly.swarm:jaxrs")
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
testCompile "org.wildfly.swarm:arquillian"
}
swarm {
executable = true
// properties {
// swarm.http.port = 8080
// }
// bundleDependencies = true
}
defaultTasks "clean", "build"