-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
100 lines (76 loc) · 2.42 KB
/
build.gradle
File metadata and controls
100 lines (76 loc) · 2.42 KB
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
buildscript {
ext {
springBootVersion = '2.1.0.M2'
}
repositories {
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.ao'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 10
repositories {
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
mavenCentral()
}
compileJava {
options.compilerArgs << "-s"
options.compilerArgs << "$projectDir/src/main/java"
}
clean.doLast {
// 删除上一次生成的辅助文件
def dir=new File(projectDir, "/src/main/java")
dir.eachFileRecurse { file ->
def isHasPrex=file.name.startsWith('Q')
if (!isHasPrex) {
return;
}
def entityFileName= file.parent+"\\"+file.name.substring(1)
def entityFile = new File(entityFileName)
if(!entityFile.exists()) {
println 'finde start Q file ['+file.name+'] but not find entity,skip delete'
return;
}
println 'delete qsl file'+file.name
file.delete();
}
}
dependencies {
compile project(':jpaQueryHelper')
//compile('com.alibaba:druid-spring-boot-starter:1.1.10')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile('org.springframework.boot:spring-boot-starter-data-mongodb')
compile('org.springframework.boot:spring-boot-starter-security')
compile('io.projectreactor:reactor-core')
compile('org.apache.commons:commons-pool2')
compile('org.apache.commons:commons-lang3:3.8')
compile('com.querydsl:querydsl-jpa:4.2.1')
compile('com.querydsl:querydsl-apt:4.2.1:jpa')
compile('com.fasterxml.jackson.core:jackson-annotations')
compile('com.fasterxml.jackson.core:jackson-core')
compile('com.fasterxml.jackson.core:jackson-databind')
compile('javax.xml.bind:jaxb-api')
compile('com.sun.xml.bind:jaxb-impl')
compile('com.sun.xml.bind:jaxb-core')
compile('javax.activation:activation')
runtime('mysql:mysql-connector-java')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
jar {
enabled = true
}
tasks.withType(JavaCompile) {
options.encoding = 'GBK'
}