-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (90 loc) · 4.18 KB
/
build.gradle
File metadata and controls
113 lines (90 loc) · 4.18 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
101
102
103
104
105
106
107
108
109
110
111
112
113
import org.apache.tools.ant.filters.ReplaceTokens
import org.apache.tools.ant.taskdefs.condition.Os
import static groovy.io.FileType.FILES
apply plugin: 'java'
apply plugin: 'eclipse'
jar {
baseName = 'os-plugin'
version = '1.0.0'
manifest {
attributes("os-plugin-name": "os-plugin")
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
ajc
aspects
aspectCompile
compile {
extendsFrom aspects
}
}
configurations.all {
transitive = false
}
def springVersion = "3.2.13.RELEASE"
dependencies {
ajc "org.aspectj:aspectjtools:1.8.6"
compile "org.aspectj:aspectjrt:1.8.6"
compile "javax.persistence:persistence-api:1.0.2"
aspects "org.springframework:spring-aspects:3.2.13.RELEASE"
aspects fileTree(dir: './lib', include: ['openspecimen.jar'])
compile group: 'javax.servlet', name: 'javax.servlet-api', version:'3.0.1'
compile group: 'asm', name: 'asm', version:'3.3.1'
compile group: 'org.aspectj', name: 'aspectjweaver', version:'1.8.6'
compile group: 'org.javassist', name: 'javassist', version:'3.19.0-GA'
compile group: 'cglib', name: 'cglib', version:'3.1'
compile group: 'com.google.code.gson', name: 'gson', version:'2.3.1'
compile group: 'commons-codec', name: 'commons-codec', version:'1.10'
compile group: 'commons-collections', name: 'commons-collections', version:'3.2.1'
compile group: 'commons-logging', name: 'commons-logging', version:'1.2'
compile group: 'commons-lang', name: 'commons-lang', version:'2.6'
compile group: 'commons-io', name: 'commons-io', version:'2.4'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
compile group: 'log4j', name: 'log4j', version:'1.2.16'
compile group: 'org.hibernate', name: 'hibernate-envers', version:'4.2.18.Final'
compile group: 'org.hibernate', name: 'hibernate-core', version:'4.2.18.Final'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.5.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:'2.5.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.5.3'
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version:'1.9.13'
compile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version:'1.9.13'
compile group: 'com.sun.jersey', name: 'jersey-client', version:'1.19'
compile group: 'com.sun.jersey', name: 'jersey-core', version:'1.19'
compile group: 'com.sun.jersey', name: 'jersey-server', version:'1.19'
compile group: 'javax.ws.rs', name: 'jsr311-api', version:'1.1.1'
compile group: 'org.springframework', name: 'spring-aop', version:springVersion
compile group: 'org.springframework', name: 'spring-beans', version:springVersion
compile group: 'org.springframework', name: 'spring-context', version:springVersion
compile group: 'org.springframework', name: 'spring-core', version:springVersion
compile group: 'org.springframework', name: 'spring-jdbc', version:springVersion
compile group: 'org.springframework.security', name: 'spring-security-core', version:'3.2.7.RELEASE'
compile group: 'org.springframework', name: 'spring-tx', version:springVersion
compile group: 'org.springframework', name: 'spring-web', version:springVersion
compile group: 'org.springframework', name: 'spring-webmvc', version:springVersion
compile group: 'org.springframework', name: 'spring-test', version:2.5
}
compileJava {
doLast{
ant.taskdef(resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties",
classpath: configurations.ajc.asPath)
ant.iajc(
source: 1.8, target: 1.8,
destDir: sourceSets.main.output.classesDir.absolutePath,
maxmem: "512m", fork: "true",
aspectPath: configurations.aspects.asPath,
sourceRootCopyFilter: "**/*.java",
classpath: "${configurations.compile.asPath};${configurations.aspectCompile.asPath}") {
sourceroots {
sourceSets.main.java.srcDirs.each {
pathelement(location:it.absolutePath)
}
}
}
}
}
build.dependsOn jar