-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
60 lines (50 loc) · 1.52 KB
/
build.gradle
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
buildscript {
ext {
springbootVersion = '2.4.5'
kotlin_version = '1.5.0'
}
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springbootVersion")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group 'cn.lttc'
version '1.0.0'
sourceCompatibility = 11
repositories {
//本地仓库
mavenLocal()
//阿里云
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
//中央仓库
mavenCentral()
}
//所有子项目公用的依赖。每个项目单独的依赖请在子项目的 build.gradle 中配置
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'junit:junit:4.12'
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
}