-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
60 lines (47 loc) · 1.42 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id(Plugin.SPRING_FRAMEWORK) version PluginVersions.SPRING_BOOT_VERSION
id(Plugin.SPRING_MANAGEMENT) version PluginVersions.DEPENDENCY_MANAGER_VERSION
kotlin(Plugin.KOTLIN_JVM) version PluginVersions.JVM_VERSION
kotlin(Plugin.KOTLIN_SPRING) version PluginVersions.SPRING_PLUGIN_VERSION
kotlin(Plugin.KOTLIN_JPA) version PluginVersions.JPA_PLUGIN_VERSION
id(Plugin.KT_LINT) version PluginVersions.KT_LINT
}
group = ProjectProperties.Group
version = PluginVersions.PROJECT_VERSION
java.sourceCompatibility = JavaVersion.VERSION_11
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencies {
installDependencies(
spring = true,
kotlin = true,
ktlint = true,
jackson = true,
jwt = true,
)
implementation("io.github.microutils:kotlin-logging-jvm:2.1.21")
val runtime = listOf(
Dependencies.MYSQL_DRIVER,
).dependenciesFlatten()
runtime.forEach(::runtimeOnly)
annotationProcessor(Dependencies.CONFIGUATION_PROCESSOR)
}
allOpen {
annotation("javax.persistence.Entity")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = ProjectProperties.JvmTarget
}
}
tasks.withType<Test> {
useJUnitPlatform()
}