-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (51 loc) · 1.75 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
// must be declare, and then can apply the 'io.spring.dependency-management'
// equals to classpath()
plugins {
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id "org.springframework.boot" version "2.2.6.RELEASE"
// code formatter plugin
id "com.diffplug.spotless" version "5.6.1"
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java-library'
}
group 'medo'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
// java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/junit/platform/engine/EngineDiscoveryListener
ext['junit-jupiter.version'] = '5.6.0'
repositories {
mavenLocal()
mavenCentral()
}
// exclude parent project's bootJar task
bootJar.enabled = false
subprojects {
apply plugin: "io.spring.dependency-management"
dependencies {
api platform('org.springframework.cloud:spring-cloud-dependencies:Greenwich.RELEASE')
api platform('org.springframework.boot:spring-boot-dependencies:2.2.6.RELEASE')
api platform('medo:medo-dependencies:1.0.0-SNAPSHOT')
// lombok
compileOnly "org.projectlombok:lombok:1.18.4"
annotationProcessor "org.projectlombok:lombok:1.18.4"
testAnnotationProcessor 'org.projectlombok:lombok:1.18.4'
testCompile 'org.projectlombok:lombok:1.18.4'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
// global dependencies jar version
// apply from: "${rootDir}/gradle/config/dependencies.gradle"
// spotless config
apply from: "${rootDir}/gradle/config/spotless.gradle"
}