forked from Linyuzai/concept
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allprojects.gradle
77 lines (61 loc) · 2.09 KB
/
allprojects.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.3'
id 'io.spring.dependency-management' version '1.0.13.RELEASE'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'org.jetbrains.dokka' version '1.6.0'
}
if (project.name.contains('intellij')) {
return
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.dokka'
group = 'com.github.linyuzai'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.springframework.cloud:spring-cloud-starter'
compileOnly 'org.springframework.cloud:spring-cloud-loadbalancer'
compileOnly 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.springframework.boot:spring-boot-starter-aop'
compileOnly 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.springframework.boot:spring-boot-starter-webflux'
compileOnly 'org.springframework.boot:spring-boot-starter-websocket'
compileOnly 'org.springframework.boot:spring-boot-starter-amqp'
compileOnly 'org.springframework.kafka:spring-kafka'
compileOnly 'org.jboss.xnio:xnio-api:3.8.6.Final'
compileOnly 'io.netty:netty-all:4.1.85.Final'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testCompileOnly 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
//依赖管理
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2021.0.4'
mavenBom 'com.alibaba.cloud:spring-cloud-alibaba-dependencies:2021.1'
}
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.dokkaJavadoc.configure {
outputDirectory.set(javadoc.destinationDir)
}
if (project.name != 'sample') {
bootJar.enabled = false
jar.enabled = true
jar.archiveClassifier.set('')
}
*/