forked from Linyuzai/concept
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
120 lines (99 loc) · 3.64 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
plugins {
id 'java'
//id 'org.javamodularity.moduleplugin' version '1.7.0'
id 'org.springframework.boot' version '2.7.6'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.jetbrains.kotlin.jvm' version '1.8.0' //1.6.10
id 'org.jetbrains.dokka' version '1.6.0'
}
allprojects {
ext {
set('SpringDocVersion', '1.6.13')
set('MyBatisPlusVersion', '3.5.2')
set('NettyVersion', '4.1.85.Final')
set('RedissonVersion', '3.22.1')
set('XnioVersion', '3.8.6.Final')
set('VueVersion', '2.6.11')
set('VueResourceVersion', '1.5.1')
set('ElementUIVersion', '2.15.1')
}
group = 'com.github.linyuzai'
repositories {
mavenCentral()
}
if (project.name.contains('intellij') || project.name == 'sample') {
sourceCompatibility = '17'
targetCompatibility = '17'
return
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
apply plugin: 'java-library'
//apply plugin: "org.javamodularity.moduleplugin"
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
if (project.name == 'concept-download-load-coroutines') {
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.dokka'
tasks.dokkaJavadoc.configure {
outputDirectory.set(javadoc.destinationDir)
}
}
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.springdoc:springdoc-openapi-ui:${SpringDocVersion}"
compileOnly "com.baomidou:mybatis-plus-boot-starter:${MyBatisPlusVersion}"
compileOnly "org.jboss.xnio:xnio-api:${XnioVersion}"
compileOnly "io.netty:netty-all:${NettyVersion}"*/
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).configureEach {
options.encoding = "UTF-8"
}
bootJar.enabled = false
jar.enabled = true
jar.archiveClassifier.set('')
}
/*apply from: 'github.gradle'
subprojects {
apply plugin: 'java'
apply plugin: "maven-publish"
publishing {
repositories {
maven {
name = "Concept"
url = uri("https://maven.pkg.github.com/linyuzai/concept")
credentials {
username = githubUsername
password = githubPassword
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
}*/