-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
97 lines (73 loc) · 2.46 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
90
91
92
93
94
95
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.7.3"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
kotlin("jvm") version "1.6.0"
kotlin("plugin.jpa") version "1.4.32"
kotlin("plugin.spring") version "1.6.0"
kotlin("plugin.allopen") version "1.4.31"
kotlin("plugin.noarg") version "1.6.10"
}
group = "com.ead"
version = "0.0.1-SNAPSHOT"
extra["springCloudVersion"] = "2021.0.4"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
withType<Test> {
useJUnitPlatform()
}
}
allOpen {
annotation("javax.persistence.Entity")
}
noArg {
annotation("com.ead.course.core.annotations.NoArg")
}
configurations {
all {
exclude("org.springframework.boot", "spring-boot-starter-logging")
}
}
dependencies {
implementations(
"org.springframework.boot:spring-boot-starter-web",
"org.springframework.boot:spring-boot-starter-data-jpa",
"org.springframework.boot:spring-boot-starter-validation",
"org.springframework.boot:spring-boot-starter-amqp",
"org.springframework.boot:spring-boot-starter-actuator",
"org.springframework.cloud:spring-cloud-starter-netflix-eureka-client",
"org.springframework.cloud:spring-cloud-starter-config",
"org.springframework.boot:spring-boot-starter-security",
"org.springframework.boot:spring-boot-starter-log4j2",
"co.elastic.logging:log4j2-ecs-layout:1.3.2",
"io.jsonwebtoken:jjwt:0.9.1",
"org.glassfish.jaxb:jaxb-runtime",
"com.fasterxml.jackson.module:jackson-module-kotlin",
"org.jetbrains.kotlin:kotlin-reflect",
"org.jetbrains.kotlin:kotlin-stdlib-jdk8",
"io.github.microutils:kotlin-logging-jvm:2.1.20",
"net.kaczmarzyk:specification-arg-resolver:3.0.1"
)
runtimeOnly("org.postgresql:postgresql")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
}
}
fun DependencyHandlerScope.implementations(vararg all: Any) {
for (impl in all) implementation(impl)
}