-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
81 lines (70 loc) · 2.05 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
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 "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE"
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-noarg:$kotlinVersion")
}
}
plugins {
id "war"
id "idea"
id "eclipse"
}
apply plugin: "kotlin"
apply plugin: "kotlin-noarg"
apply plugin: "kotlin-allopen"
apply plugin: "io.spring.dependency-management"
allOpen {
annotation("javax.ws.rs.Path")
annotation("javax.ejb.Stateless")
annotation("javax.enterprise.context.ApplicationScoped")
}
noArg {
annotation("javax.ws.rs.Path")
annotation("javax.ejb.Stateless")
annotation("javax.enterprise.context.ApplicationScoped")
}
version = "0.0.1"
group = "daggerok"
//war.archiveName = "payara-app.war"
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 = "4.3"
distributionType = "ALL"
}
dependencies {
compileOnly("javax:javaee-api:8.0")
compileOnly("org.wildfly.swarm:microprofile")
compileOnly("org.wildfly.swarm:jaxrs")
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
testCompile "org.wildfly.swarm:arquillian"
}
dependencyManagement {
imports {
mavenBom "org.wildfly.swarm:bom:$wildflySwarmVersion"
}
}