Skip to content

Commit

Permalink
added gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Rampp authored and Florian Rampp committed Jul 14, 2012
1 parent 64643d1 commit a53b882
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 0 deletions.
45 changes: 45 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
subprojects {
apply plugin: 'java'

sourceCompatibility = 1.6

repositories {
mavenCentral()
}

dependencies {
compile group: 'com.google.guava', name: 'guava', version: '12.0'
compile group: 'com.google.inject', name: 'guice', version: '3.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '[1.6,1.7)'
compile group: 'com.google.code.gson', name: 'gson', version: '2.2'
}

jar {
manifest.attributes provider: 'gradle'
}
}
apply plugin: 'java'


version = '1.0-SNAPSHOT'

uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}

task dist(type: Zip) {
// dependsOn spiJar
from 'src/dist'
into('libs') {
// from spiJar.archivePath
from configurations.runtime
}
}

artifacts {
archives dist
}
1 change: 1 addition & 0 deletions config/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apply plugin: 'java'
8 changes: 8 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
org.gradle.daemon=true

#systemProp.http.proxyHost=www.somehost.org
#systemProp.http.proxyPort=8080
#systemProp.http.proxyUser=userid
#systemProp.http.proxyPassword=password
#systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

6 changes: 6 additions & 0 deletions hub/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies {
compile project(':config')
compile project(':signallight')

compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.2'
}
8 changes: 8 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dependencies {
compile project(':config')
compile project(':hub')

compile group: 'com.google.inject.extensions', name: 'guice-servlet', version: '3.0'
compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '8.1.+'
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '8.1.+'
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include "config", "signallight", "hub", "server"
3 changes: 3 additions & 0 deletions signallight/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
compile project(':config')
}

0 comments on commit a53b882

Please sign in to comment.