-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
executable file
·90 lines (79 loc) · 2.21 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("io.spring.dependency-management") version "1.0.8.RELEASE"
id("org.springframework.boot") version "2.1.8.RELEASE" apply false
kotlin("jvm") version "1.3.50" apply false
kotlin("plugin.spring") version "1.3.50" apply false
java
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
defaultTasks("assemble")
tasks.forEach {
if (it.name == "bootRun") {
it.enabled = false
}
}
allprojects {
group = "com.allali84"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
}
subprojects {
apply(plugin = "io.spring.dependency-management")
apply(plugin = "kotlin")
if (name == "spring-jpa"
|| name == "spring-rest-template"
|| name == "spring-config-jpa"
|| name == "spring-config-ws"
|| name == "spring-app-back-jpa"
|| name == "spring-app-back-ws"
|| name == "graphql-app-back-jpa"
|| name == "graphql-app-back-in-memory") {
apply(plugin = "org.springframework.boot")
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
tasks.jar {
enabled = true
}
tasks.forEach {
if (it.name == "bootJar") {
it.enabled = false
}
}
}
dependencyManagement {
dependencies {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:Greenwich.RELEASE")
}
dependencySet("io.swagger:1.5.12") {
//entry("swagger-annotations") its included in swagger-jaxrs
entry("swagger-jaxrs")
}
dependencySet("org.elasticsearch:6.2.1") {
entry("elasticsearch")
entry("transport")
entry("elasticsearch-rest-client")
entry("elasticsearch-rest-high-level-client")
}
dependency("javax.ws.rs:javax.ws.rs:2.1")
dependency("javax:javaee-api:8.0.1")
dependency("javax.validation:validation-api:2.0.0.Final")
dependency("com.hazelcast:hazelcast:3.12.2")
dependency("org.mock-server:mockserver-netty:5.6.1")
dependency("com.graphql-java:graphql-spring-boot-starter:5.0.2")
dependency("com.graphql-java:graphql-java-tools:5.2.4")
dependency("com.graphql-java:graphiql-spring-boot-starter:5.0.2")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
}