-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
97 lines (83 loc) · 2.2 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
93
94
95
96
97
allprojects {
version = '1.4'
}
ext {
dynamo_home="$System.env.DYNAMO_HOME"
m2Repo="$System.env.M2_REPO"
atgJavadocLocation='http://docs.oracle.com/cd/E35319_01/Platform.10-2/apidoc'
}
logger.quiet "Build Environment for roanis/TDD"
logger.quiet "DYNAMO_HOME: ${dynamo_home}"
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
group = 'roanis.tdd'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenLocal()
mavenCentral()
// For any private maven repo ensure the properties below (mavenUrl, mavenUsername, mavenPassword) are added to
// ~/.gradle/gradle.properties and uncomment the maven DSL below.
// maven {
// credentials {
// username mavenUsername
// password mavenPassword
// }
// url mavenUrl
// }
}
// Workaround for https://issues.gradle.org/browse/GRADLE-2812
configurations.all {
resolutionStrategy {
force 'xml-apis:xml-apis:1.0.b2'
}
}
apply from: "$rootDir/gradle/dependencies.gradle"
dependencies {
compile (
libraries.commons_collections,
libraries.commons_io,
libraries.google_guava,
libraries.atg
)
testCompile (
libraries.junit,
)
testRuntime(
libraries.dust,
libraries.log4j,
libraries.cglib,
libraries.servlet_api,
libraries.apache_ddlutils,
libraries.hsqldb,
libraries.jsp_api
)
}
jar {
manifest {
writeTo file(project.projectDir.getAbsolutePath() + '/META-INF/MANIFEST.MF')
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://" + m2Repo)
}
}
}
eclipse.classpath.file {
whenMerged { classpath ->
def entries = classpath.entries.findAll { it instanceof org.gradle.plugins.ide.eclipse.model.Library && it.path.indexOf('/lib/classes.jar') !=-1 }
entries.each { entry->
entry.entryAttributes.put('javadoc_location', atgJavadocLocation)
}
}
}
}
apply from: "${rootDir}/gradle/tasks.gradle"
defaultTasks 'build'
task wrapper(type: Wrapper) {
gradleVersion = "2.0"
}