-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
100 lines (70 loc) · 1.97 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
96
97
98
99
100
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// id("io.vertx.vertx-plugin") version "0.3.1"
kotlin("jvm") version "1.6.10"
kotlin("plugin.serialization") version "1.6.10"
id("org.springframework.boot") version "2.4.0-SNAPSHOT"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
}
group = "com.iguigui"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
val kotlinVersion: String = "1.5.30"
val miraiVersion: String = "2.10.0"
val vertxVersion = "3.9.0"
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
jcenter()
google()
maven { url = uri ("https://dl.bintray.com/kotlin/kotlin-eap")}
}
dependencies {
}
allprojects {
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
jcenter()
google()
maven { url = uri ("https://dl.bintray.com/kotlin/kotlin-eap")}
}
}
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
repositories {
mavenCentral()
}
dependencies {
implementation("net.mamoe:mirai-core-api-jvm:$miraiVersion") {
exclude("net.mamoe", "mirai-core-utils")
}
implementation("org.springframework.boot:spring-boot-starter:2.6.0")
// implementation("org.apache.dubbo:dubbo-spring-boot-starter:2.7.8")
// implementation("org.apache.dubbo:dubbo-dependencies-zookeeper:2.7.8")
implementation("de.javakaffee:kryo-serializers:0.45")
implementation("com.esotericsoftware:kryo:4.0.2")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "11"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "11"
}