-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
107 lines (90 loc) · 2.97 KB
/
build.gradle
File metadata and controls
107 lines (90 loc) · 2.97 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
osgiVersion = "1.0"
jtaSpecVersion = "1.1.1"
httpComponentsVersion = "4.0.1"
commonsIoVersion = "1.4"
luceneBundleVersion = "3.0.1_2"
nettyVersion = "3.2.1.Final"
zookeeperVersion = "3.3.2"
junitVersion = "4.8.2"
log4jVersion = "1.2.16"
allprojects {
group = 'org.neo4j'
version = '1.3-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
repositories {
mavenLocal()
mavenRepo urls: "https://repo.neo4j.org/content/groups/dev/"
mavenCentral()
mavenRepo urls: "http://repository.jboss.org/nexus/content/groups/public/"
}
dependencies {
testCompile "junit:junit:$junitVersion"
compile "junit:junit:$junitVersion"
}
[compileJava, compileTestJava, javadoc]*.options.collect { options ->
options.encoding = 'UTF-8'
}
// compileJava.options.compilerArgs = ['-Xlint:unchecked']
ideaModule.javaVersion = 1.6
ideaModule.downloadJavadoc = true
ideaModule.downloadSources = true
ideaModule.outputDir = project.sourceSets.main.classesDir
ideaModule.testOutputDir = project.sourceSets.test.classesDir
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task testsJar(type: Jar, dependsOn: javadoc) {
classifier = 'tests'
from sourceSets.test.allSource
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
archives testsJar
}
configurations {
functionalTest
integrationTest
}
sourceSets {
functionalTest {
compileClasspath = sourceSets.main.classes + configurations.testRuntime + sourceSets.test.classes
runtimeClasspath = classes + sourceSets.main.classes + configurations.testRuntime
java {
srcDir "src/functionaltest/java"
}
}
integrationTest {
compileClasspath = sourceSets.main.classes + configurations.testRuntime + sourceSets.test.classes
runtimeClasspath = classes + sourceSets.main.classes + configurations.testRuntime
java {
srcDir "src/integrationtest/java"
}
}
}
task functionalTest(type: Test) {
testClassesDir = sourceSets.functionalTest.classesDir
classpath += sourceSets.functionalTest.runtimeClasspath
}
task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.classesDir
classpath += sourceSets.integrationTest.runtimeClasspath
}
install.dependsOn ':build'
}
ideaProject {
withXml { provider ->
provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
}
}