-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (57 loc) · 1.67 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
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.6
version = '1.0.0'
group = 'org.gw'
description = 'Component which allows simple logging of Objects. It can also read the Objects that it has logged.'
repositories {
maven {
url "/Users/gman/.m2/repository"
}
mavenCentral()
}
configurations {
javaAgentAspectjWeaver
}
dependencies {
compile 'org.gw:commons-utils:1.0.0'
compile 'org.slf4j:slf4j-api:1.6.6'
compile 'commons-io:commons-io:2.4'
compile 'org.springframework:spring-context:4.0.6.RELEASE'
compile 'org.springframework:spring-beans:4.0.6.RELEASE'
compile 'com.fasterxml.jackson.core:jackson-core:2.2.3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.2.3'
testCompile 'org.gw:commons-aspects:1.0.0'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'org.springframework:spring-test:4.0.6.RELEASE'
testCompile 'org.aspectj:aspectjrt:1.8.1'
javaAgentAspectjWeaver "org.aspectj:aspectjweaver:1.8.1"
}
jar {
manifest {
attributes 'Implementation-Title': 'Object Logger', 'Implementation-Version': version
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
}
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from 'build/docs/javadoc'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
test.doFirst {
jvmArgs "-javaagent:${configurations.javaAgentAspectjWeaver.asPath}"
}