-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (59 loc) · 1.8 KB
/
build.gradle
File metadata and controls
85 lines (59 loc) · 1.8 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
group 'com.chenkaihua'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
repositories {
mavenCentral()
}
configurations{
ebeanagent
}
//配置插件仓库
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.akhikhl.gretty:gretty:1.2.4'
}
}
//gretty设置
gretty {
port = 8080
contextPath = "/"
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'org.avaje.ebeanorm:avaje-ebeanorm-spring:4.5.3'
compile 'org.slf4j:slf4j-log4j12:1.7.12'
compile 'com.h2database:h2:1.4.189'
compile "org.springframework:spring-orm:4.1.7.RELEASE"
ebeanagent 'org.avaje.ebeanorm:avaje-ebeanorm-agent:4.7.1'
compile 'org.springframework:spring-aop:4.1.7.RELEASE'
testCompile 'org.springframework:spring-test:4.1.7.RELEASE'
compile 'org.springframework:spring-webmvc:4.1.7.RELEASE'
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'org.aspectj:aspectjweaver:1.8.6'
compile 'com.fasterxml.jackson.core:jackson-databind:2.6.1'
compile "org.flywaydb:flyway-core:3.2.1"
}
ant.taskdef(
name: "ebeanEnhance",
classname:"com.avaje.ebean.enhance.ant.AntEnhanceTask",
classpath:configurations.ebeanagent.asPath
)
def ebeanEnhance = {dir, packages ->
println dir
println packages
println '============================================'
println ' Enhance ebean classes....' + dir
println '============================================'
ant.ebeanEnhance(classSource: dir,
packages: packages,
transformArgs: "debug=10")
println 'Enhance ebean end....................'
}
compileJava.doLast {
ebeanEnhance(destinationDir, "com.chenkaihua.springebean.entity.*")
}