FFFF Merge in build changes by rspieldenner · Pull Request #131 · OpenFeign/feign · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
157 changes: 9 additions & 148 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,156 +1,17 @@
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name

buildscript {
repositories {
mavenLocal()
mavenCentral()
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
}

allprojects {
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet') // Doclint is onerous in Java 8.
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
}
plugins {
id 'nebula.netflixoss' version '2.2.2'
}

apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
if (!JavaVersion.current().isJava8Compatible()) {
apply from: file('gradle/check.gradle') // FindBugs is incompatible with Java 8.
ext {
githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
}
apply from: file('gradle/license.gradle')
apply from: file('gradle/release.gradle')
apply plugin: 'idea'

subprojects {
apply from: rootProject.file('dagger.gradle')
group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of project
}

project(':feign-core') {
apply plugin: 'java'

test {
useTestNG()
}

dependencies {
testCompile 'com.google.guava:guava:14.0.1'
testCompile 'com.google.code.gson:gson:2.2.4'
testCompile 'com.fasterxml.jackson.core:jackson-databind:2.2.2'
testCompile 'org.testng:testng:6.8.5'
testCompile 'com.google.mockwebserver:mockwebserver:20130706'
}
}

project(':feign-sax') {
apply plugin: 'java'

test {
useTestNG()
}

dependencies {
compile project(':feign-core')
testCompile 'com.google.guava:guava:14.0.1'
testCompile 'org.testng:testng:6.8.5'
}
}

project(':feign-gson') {
apply plugin: 'java'

test {
useTestNG()
}

dependencies {
compile project(':feign-core')
compile 'com.google.code.gson:gson:2.2.4'
testCompile 'org.testng:testng:6.8.5'
}
}

project(':feign-jackson') {
apply plugin: 'java'
apply plugin: 'nebula.netflixoss'

test {
useTestNG()
}

dependencies {
compile project(':feign-core')
compile 'com.fasterxml.jackson.core:jackson-databind:2.2.2'
testCompile 'org.testng:testng:6.8.5'
testCompile 'com.google.guava:guava:14.0.1'
}
}

project(':feign-jaxb') {
apply plugin: 'java'

test {
useTestNG()
}

dependencies {
compile project(':feign-core')
testCompile 'org.testng:testng:6.8.5'
testCompile 'com.google.guava:guava:14.0.1'
}
}

project(':feign-jaxrs') {
apply plugin: 'java'

test {
useTestNG()
}

dependencies {
compile project(':feign-core')
compile 'javax.ws.rs:jsr311-api:1.1.1'
testCompile project(':feign-gson')
testCompile 'com.google.guava:guava:14.0.1'
testCompile 'org.testng:testng:6.8.5'
}
}

project(':feign-ribbon') {
apply plugin: 'java'

test {
useTestNG()
}

dependencies {
compile project(':feign-core')
compile 'com.netflix.ribbon:ribbon-loadbalancer:2.0-RC5'
testCompile 'org.testng:testng:6.8.5'
testCompile 'com.google.mockwebserver:mockwebserver:20130706'
}
}

project(':feign-slf4j') {
apply plugin: 'java'

test {
useTestNG()
}

dependencies {
compile project(':feign-core')
compile 'org.slf4j:slf4j-api:1.7.5'
testCompile 'org.testng:testng:6.8.5'
testCompile 'org.slf4j:slf4j-simple:1.7.5'
repositories {
jcenter()
}
apply from: rootProject.file('dagger.gradle')
group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of project
}
13 changes: 0 additions & 13 deletions codequality/HEADER

This file was deleted.

15 changes: 15 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apply plugin: 'java'

sourceCompatibility = 1.6

test {
useTestNG()
}

dependencies {
testCompile 'com.google.guava:guava:14.0.1'
testCompile 'com.google.code.gson:gson:2.2.4'
testCompile 'com.fasterxml.jackson.core:jackson-databind:2.2.2'
testCompile 'org.testng:testng:6.8.5'
testCompile 'com.google.mockwebserver:mockwebserver:20130706'
}
4 changes: 2 additions & 2 deletions dagger.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ rootProject.idea.project.ipr.withXml { projectXml ->
tasks.ideaModule.dependsOn(prepareAnnotationGeneratedSourceDirs)

idea.module {
scopes.PROVIDED.plus += project.configurations.daggerCompiler
scopes.PROVIDED.plus += [project.configurations.daggerCompiler]
iml.withXml { xml->
def moduleSource = xml.asNode().component.find { it.@name = 'NewModuleRootManager' }.content[0]
moduleSource.appendNode('sourceFolder', [url: "file://\$MODULE_DIR\$/${relativePath(annotationGeneratedSources)}", isTestSource: false])
Expand All @@ -103,7 +103,7 @@ idea.module {
tasks.eclipseClasspath.dependsOn(prepareAnnotationGeneratedSourceDirs)

eclipse.classpath {
plusConfigurations += project.configurations.daggerCompiler
plusConfigurations += [project.configurations.daggerCompiler]
}

tasks.eclipseClasspath {
Expand Down
6 changes: 6 additions & 0 deletions example-github/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
plugins {
id 'nebula.provided-base' version '2.0.1'
}

apply plugin: 'java'

sourceCompatibility = 1.6

dependencies {
compile 'com.netflix.feign:feign-core:5.3.0'
compile 'com.netflix.feign:feign-gson:5.3.0'
Expand Down
6 changes: 6 additions & 0 deletions example-wikipedia/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
plugins {
id 'nebula.provided-base' version '2.0.1'
}

apply plugin: 'java'

sourceCompatibility = 1.6

dependencies {
compile 'com.netflix.feign:feign-core:5.3.0'
compile 'com.netflix.feign:feign-gson:5.3.0'
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
version=8.0.0-SNAPSHOT
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.

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

This file was deleted.

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

This file was deleted.

Loading
0