-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (62 loc) · 1.77 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
import org.springframework.boot.gradle.tasks.bundling.BootJar
plugins {
id("org.springframework.boot") version "3.1.1"
id("com.google.protobuf") version "0.9.2"
id("io.freefair.lombok") version "8.0.1"
id("java")
id("org.jetbrains.kotlin.jvm") version "1.8.20"
id("org.jetbrains.kotlin.plugin.spring") version "1.8.20"
}
repositories {
mavenCentral()
}
allprojects {
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
}
subprojects {
group = "org.tag.wonder"
version = "0.0.1-SNAPSHOT"
apply(plugin = "java")
apply(plugin = "org.springframework.boot")
apply(plugin = "io.spring.dependency-management")
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
tasks {
compileJava {
sourceCompatibility = "17"
targetCompatibility = JavaVersion.VERSION_17.toString()
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
dependencies {
implementation("com.google.guava:guava:29.0-jre")
implementation("org.apache.httpcomponents:httpclient:4.5.12")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}
configurations {
compileOnly {
extendsFrom(configurations["annotationProcessor"])
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
tasks.getByName<BootJar>("bootJar") {
enabled = false
}
tasks.getByName<Jar>("jar") {
enabled = true
}