-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
91 lines (76 loc) · 2.55 KB
/
build.gradle.kts
File metadata and controls
91 lines (76 loc) · 2.55 KB
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
import com.linecorp.support.project.multi.recipe.configureByLabels
plugins {
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
id("org.springframework.boot") version "2.7.3" apply false
id("io.freefair.lombok") version "6.4.1" apply false
id("com.linecorp.build-recipe-plugin") version "1.1.1"
kotlin("jvm") version "1.6.21" apply false
kotlin("kapt") version "1.6.21" apply false
kotlin("plugin.spring") version "1.6.21" apply false
}
allprojects {
group = "sample.project.kdohyeon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://maven.restlet.com")
}
maven {
url = uri("https://jitpack.io")
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs = listOf(
"-Xjsr305=strict",
"-Xjvm-default=all",
)
}
}
subprojects {
apply(plugin = "idea")
}
configureByLabels("java") {
apply(plugin = "org.gradle.java")
apply(plugin = "io.spring.dependency-management")
apply(plugin = "io.freefair.lombok")
the<io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension>().apply {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.7.3")
mavenBom("org.jetbrains.kotlin:kotlin-bom:1.6.21")
mavenBom("org.jetbrains.kotlinx:kotlinx-serialization-bom:1.4.1")
mavenBom("com.google.guava:guava-bom:31.1-jre")
}
dependencies {
dependency("org.apache.commons:commons-lang3:3.12.0")
dependency("org.apache.commons:commons-collections4:4.4")
dependency("commons-io:commons-io:2.11.0")
}
}
repositories {
mavenCentral()
maven {
url = uri("https://maven.restlet.com")
}
maven {
url = uri("https://jitpack.io")
}
}
dependencies {
val implementation by configurations
implementation("org.apache.commons:commons-lang3")
implementation("org.apache.commons:commons-collections4")
implementation("commons-io:commons-io")
implementation("com.google.guava:guava")
}
}
configureByLabels("boot") {
apply(plugin = "org.springframework.boot")
tasks.getByName<Jar>("jar") {
enabled = false
}
tasks.getByName<org.springframework.boot.gradle.tasks.bundling.BootJar>("bootJar") {
enabled = true
}
}