-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
58 lines (43 loc) · 1003 Bytes
/
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
apply from: "$rootDir/gradle/dependencies.gradle"
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}
allprojects {
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
subprojects {
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
jar {
baseName = project['artifactId']
version = project['version']
}
task sourcesJar(type: Jar) {
baseName = project['artifactId']
version = project['version']
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
dependencies {
testCompile libs.test
}
}