This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
86 lines (74 loc) · 2.68 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootJar
import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
plugins {
base
id("org.springframework.boot") version "2.3.4.RELEASE" apply false
id("io.spring.dependency-management") version "1.0.10.RELEASE" apply false
kotlin("jvm") version "1.3.72" apply false
kotlin("plugin.spring") version "1.3.72" apply false
kotlin("plugin.jpa") version "1.3.72" apply false
}
allprojects {
group = "com.mrfourfour.ichi"
version = "1.0"
repositories {
mavenCentral()
}
}
subprojects {
apply {
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
plugin("org.jetbrains.kotlin.jvm")
plugin("org.jetbrains.kotlin.plugin.spring")
plugin("org.jetbrains.kotlin.plugin.jpa")
}
val implementation by configurations
val testImplementation by configurations
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
configure<DependencyManagementExtension> {
imports {
mavenBom("org.keycloak.bom:keycloak-adapter-bom:11.0.3")
}
}
dependencies {
implementation(kotlin("reflect"))
implementation("org.keycloak:keycloak-spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.github.microutils:kotlin-logging:1.12.0")
testImplementation("org.spockframework:spock-core:2.0-M3-groovy-2.5")
testImplementation("org.spockframework:spock-bom:2.0-M3-groovy-2.5")
testImplementation("org.spockframework:spock-spring:2.0-M3-groovy-2.5")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}
project(":ichi-server") {
val implementation by configurations
dependencies {
implementation(project(":ichi-user"))
}
}
project(":ichi-user") {
val jar: Jar by tasks
val bootJar: BootJar by tasks
bootJar.enabled = false
jar.enabled = true
}