Permalink
Browse files

introduce gradle-build system

  • Loading branch information...
tbaum committed Feb 17, 2011
1 parent b83cacf commit a1fe937c36f5cab13c1a03c53b63eba0eeb2d7ca
View
@@ -1,13 +1,14 @@
*~
\#*
-*/target/
-/target/
+.gradle
+target
+build
*.swp
.project
.classpath
.settings
*.iws
*.ipr
*.iml
-.idea/
+.idea
.DS_Store
View
@@ -0,0 +1,48 @@
+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"
+
+sourceCompatibility = 1.6
+
+apply plugin: 'java'
+apply plugin: 'idea'
+apply plugin: 'eclipse'
+
+subprojects {
+ group = 'org.neo4j'
+ version = '1.3-SNAPSHOT'
+
+ sourceCompatibility = 1.6
+
+ apply plugin: 'java'
+ apply plugin: 'idea'
+ apply plugin: 'eclipse'
+
+ repositories {
+ mavenCentral()
+ mavenRepo urls: "http://repository.jboss.org/nexus/content/groups/public/"
+ }
+
+ dependencies {
+ testCompile "junit:junit:$junitVersion"
+ }
+
+ [compileJava, compileTestJava, javadoc]*.options.collect { options ->
+ options.encoding = 'UTF-8'
+ }
+
+ compileJava.options.compilerArgs = ['-Xlint:unchecked']
+}
+
+
+
+ideaProject {
+ withXml { provider ->
+ provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
+ }
+}
View
@@ -0,0 +1,3 @@
+dependencies {
+ compile project(":kernel"), "org.jboss.netty:netty:$nettyVersion"
+}
View
@@ -0,0 +1,3 @@
+dependencies {
+ compile project(":kernel")
+}
View
@@ -0,0 +1,11 @@
+dependencies {
+ compile project(":kernel"),
+ project(":com"),
+ project(":lucene-index"),
+ project(":management")
+
+ compile("org.apache.zookeeper:zookeeper:$zookeeperVersion") {
+ exclude module: "jline"
+ exclude module: "log4j"
+ }
+}
@@ -0,0 +1,3 @@
+dependencies {
+ compile project(":kernel")
+}
View
@@ -0,0 +1,7 @@
+dependencies {
+ compile "org.apache.geronimo.specs:geronimo-jta_1.1_spec:$jtaSpecVersion"
+
+ //TODO mark osgi optional
+ compile "org.osgi:osgi_R4_core:$osgiVersion",
+ "org.osgi:osgi_R4_compendium:$osgiVersion"
+}
@@ -0,0 +1,4 @@
+dependencies {
+ compile project(":kernel"),
+ "org.apache.servicemix.bundles:org.apache.servicemix.bundles.lucene:$luceneBundleVersion"
+}
View
@@ -0,0 +1,3 @@
+dependencies {
+ compile project(":kernel")
+}
View
@@ -0,0 +1,9 @@
+dependencies {
+ compile project(":kernel"),
+ project(":com"),
+ project(":lucene-index"),
+ project(":graph-algo"),
+ project(":ha"),
+ project(":management"),
+ project(":udc")
+}
View
@@ -0,0 +1 @@
+include "kernel", "graph-algo", "lucene-index", "udc", "ha", "management", "integration-test", "com", "neo4j"
View
@@ -0,0 +1,6 @@
+dependencies {
+ compile project(":kernel"),
+ "org.apache.httpcomponents:httpcore:$httpComponentsVersion",
+ "org.apache.httpcomponents:httpclient:$httpComponentsVersion",
+ "commons-io:commons-io:$commonsIoVersion"
+}

0 comments on commit a1fe937

Please sign in to comment.