-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (79 loc) · 2.13 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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/
*/
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/
*/
buildscript {
repositories {
mavenCentral()
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.1.RELEASE'
//classpath 'io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE'
}
}
//def javaProjects = getSubprojects()
def bootProjects = ['app']
configure(allprojects){
apply plugin: 'eclipse'
apply plugin: 'idea'
version = '1.3.1.4'
}
configure(subprojects) {
apply plugin: 'java'
apply plugin: "io.spring.dependency-management"
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
sourceSets {
main {
java {
srcDir 'source/java'
}
resources {
srcDir 'config'
}
}
test {
java {
srcDir 'source/test-java'
}
resources {
srcDir 'source/test-resources'
}
}
}
afterEvaluate {
dependencyManagement {
imports {
mavenBom 'io.spring.platform:platform-bom:Cairo-RELEASE'
}
}
}
dependencies {
//compile 'org.slf4j:slf4j-api'
//testCompile 'junit:junit'
}
configurations {
//all*.exclude group: 'commons-logging', module: 'commons-logging'
//all*.exclude group: 'log4j', module: 'log4j'
}
task listJars(description: 'Display all compile jars.') << {
configurations.compile.each { File file -> println file.name }
}
}
configure(bootProjects){
apply plugin: 'org.springframework.boot'
}