Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
108 lines (90 sloc) 2.97 KB
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'
}
}