Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
New netflixoss build
Browse files Browse the repository at this point in the history
  • Loading branch information
rspieldenner committed Jan 29, 2015
1 parent 473446c commit 77f40d2
Show file tree
Hide file tree
Showing 14 changed files with 61 additions and 388 deletions.
File renamed without changes.
91 changes: 13 additions & 78 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,93 +1,28 @@
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name

buildscript {
repositories {
mavenLocal()
mavenCentral() // maven { url 'http://jcenter.bintray.com' }
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
}

allprojects {
repositories {
mavenCentral() // maven { url: 'http://jcenter.bintray.com' }
}
plugins {
id 'nebula.netflixoss' version '2.2.5'
id 'nebula.provided-base' version '2.0.1'
}

apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
//apply from: file('gradle/check.gradle')
//apply from: file('gradle/license.gradle') // Waiting for re-release
apply from: file('gradle/release.gradle')

apply plugin: 'idea'
apply plugin: 'eclipse'
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name

subprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'nebula.netflixoss'
apply plugin: 'java'

group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of project

dependencies {
testCompile 'org.testng:testng:6.1.1'
repositories {
jcenter()
}
}

project(':exhibitor-core') {
dependencies {
compile('org.apache.zookeeper:zookeeper:3.4.5') {
exclude group: 'com.sun.jmx', module: 'jmxri'
exclude group: 'com.sun.jdmk', module: 'jmxtools'
exclude group: 'javax.jms', module: 'jms'

// JLine pulls this in as a compile dependency, they have fixed it in future versions
exclude group: 'junit', module: 'junit'
}
compile 'org.apache.curator:curator-framework:2.3.0'
compile 'org.apache.curator:curator-recipes:2.3.0'
compile 'com.netflix.servo:servo-core:0.5.2'
compile 'com.google.guava:guava:11.0.1'
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.8.3'
compile 'org.apache.lucene:lucene-core:3.6.0'
compile 'com.sun.jersey:jersey-client:1.11'
sourceCompatibility = 1.6
targetCompatibility = 1.6

// if you are using Java 7 you can remove this and switch to the JDK version
compile 'org.codehaus.jsr166-mirror:jsr166y:1.7.0'

compile 'com.amazonaws:aws-java-sdk:1.9.3' // should be provided - gradle doesn't support
compile 'com.sun.jersey:jersey-bundle:1.9.1' // should be provided - gradle doesn't support
compile 'com.sun.xml.bind:jaxb-impl:2.2.4' // should be provided - gradle doesn't support

testCompile 'org.apache.curator:curator-test:2.3.0'
testCompile 'org.mortbay.jetty:jetty:6.1.22'
testCompile 'org.mockito:mockito-core:1.8.5'
}

jar {
manifest {
attributes (
'Implementation-Title': 'exhibitor-core',
'Implementation-Version': project.version
)
}
dependencies {
testCompile 'org.testng:testng:6.1.1'
}
}

project(':exhibitor-standalone') {
dependencies {
compile (project(":exhibitor-core")) {
exclude group: 'com.sun.jersey', module: 'jersey-client'
}
compile 'com.sun.jersey:jersey-bundle:1.9.1'
compile 'com.sun.xml.bind:jaxb-impl:2.2.4'
compile 'javax.servlet:servlet-api:2.5' // should be provided - gradle doesn't support
compile 'org.mortbay.jetty:jetty:6.1.22'
compile 'com.google.guava:guava:11.0.1'
compile 'commons-cli:commons-cli:1.2'
compile 'com.amazonaws:aws-java-sdk:1.9.3'
compile 'org.slf4j:slf4j-log4j12:1.7.0'
test {
useTestNG()
}
}
13 changes: 0 additions & 13 deletions codequality/HEADER

This file was deleted.

32 changes: 32 additions & 0 deletions exhibitor-core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apply plugin: 'nebula.provided-base'

dependencies {
compile('org.apache.zookeeper:zookeeper:3.4.5') {
exclude group: 'com.sun.jmx', module: 'jmxri'
exclude group: 'com.sun.jdmk', module: 'jmxtools'
exclude group: 'javax.jms', module: 'jms'

// JLine pulls this in as a compile dependency, they have fixed it in future versions
exclude group: 'junit', module: 'junit'
}
compile 'org.apache.curator:curator-framework:2.3.0'
compile 'org.apache.curator:curator-recipes:2.3.0'
compile 'com.netflix.servo:servo-core:0.5.2'
compile 'com.google.guava:guava:11.0.1'
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.8.3'
compile 'org.apache.lucene:lucene-core:3.6.0'

compile 'com.sun.jersey:jersey-client:1.11'

// if you are using Java 7 you can remove this and switch to the JDK version
compile 'org.codehaus.jsr166-mirror:jsr166y:1.7.0'

provided 'com.amazonaws:aws-java-sdk:1.9.3'
provided 'com.sun.jersey:jersey-core:1.9.1'
provided 'com.sun.jersey:jersey-server:1.9.1'
provided 'com.sun.jersey:jersey-json:1.9.1'

testCompile 'org.apache.curator:curator-test:2.3.0'
testCompile 'org.mockito:mockito-core:1.8.5'
}
14 changes: 14 additions & 0 deletions exhibitor-standalone/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apply plugin: 'nebula.provided-base'

dependencies {
compile (project(":exhibitor-core")) {
exclude group: 'com.sun.jersey', module: 'jersey-client'
}
compile 'com.sun.jersey:jersey-core:1.9.1'
compile 'com.sun.jersey:jersey-client:1.9.1'
compile 'com.sun.jersey:jersey-server:1.9.1'
compile 'org.mortbay.jetty:jetty:6.1.22'
compile 'commons-cli:commons-cli:1.2'

provided 'javax.servlet:servlet-api:2.5'
}
11 changes: 0 additions & 11 deletions gradle/buildscript.gradle

This file was deleted.

26 changes: 0 additions & 26 deletions gradle/check.gradle

This file was deleted.

100 changes: 0 additions & 100 deletions gradle/convention.gradle

This file was deleted.

10 changes: 0 additions & 10 deletions gradle/license.gradle

This file was deleted.

70 changes: 0 additions & 70 deletions gradle/maven.gradle

This file was deleted.

Loading

0 comments on commit 77f40d2

Please sign in to comment.