Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging in gradle-template, specifically provided #51

Merged
merged 31 commits into from
Dec 14, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
697fd66
Initial commit, working with Maven Central
Mar 18, 2012
52bd53f
Restructure into smaller files
Apr 2, 2012
b5b2f5e
Correct artifacts, moved pom to more visible area
Apr 9, 2012
9fa9ec0
Avoid signatures in archives unless doing mavenCentral build
Apr 9, 2012
3a10a07
Remove local testing file
Apr 9, 2012
61b1710
Multimodule builds need a dump signing task
Apr 9, 2012
66332d8
Fix quotes
Apr 9, 2012
1df6e44
Use lifecycle to add signing task
Apr 10, 2012
7c28a76
Create branch that contains only build related files
Apr 10, 2012
bc66205
Un-indenting HEADER
Apr 10, 2012
e9cdf18
Merge commit 'bc662051d8c72ea7b20350b1746e1a8f527c9244' into multi-pr…
Apr 10, 2012
bf5b268
Make one less thing people have to change
Apr 13, 2012
eaa8fc9
Sonatype URL was wrong
Randgalt Aug 3, 2012
cc1b04c
Merge pull request #3 from Randgalt/multi-project
quidryan Aug 3, 2012
0f0c611
Enable license header plugin
Aug 17, 2012
c2af08e
Upgrade to Gradle 1.1.
Aug 17, 2012
a85e196
Adding cobertura
Aug 20, 2012
8f289b7
Release plugin
Aug 21, 2012
ddedbd7
Pointing to a repo in our control
Aug 31, 2012
f170238
Using custom build of release plugin, to support building from a branch
Sep 4, 2012
1954d73
Setting default name for multi-project
Sep 5, 2012
2b31d36
Changes needed for release plugin
Sep 6, 2012
a8674db
Stop relying on maven convention on project
Sep 24, 2012
6d4a854
Filling in more pom fields for Sonatype
Oct 5, 2012
61bd2b0
Add local publishing
Oct 11, 2012
05c4d06
Putting javadoc and sources into proper confs and setting types
Oct 23, 2012
1cbb4d6
Fixing issue when publishing source/javadoc to maven central
Oct 23, 2012
66ff83f
Using a better github location
Nov 16, 2012
36e5b8f
Adding provided scope
Dec 14, 2012
da57e54
Merge remote-tracking branch 'build/multi-project'
Dec 14, 2012
a4662be
Using gradle-template version of provided, fixing deps missing once p…
Dec 14, 2012
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
22 changes: 1 addition & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,7 @@ subprojects {

group = "com.netflix.${githubProjectName}"

sourceSets {
test {
java {
srcDir 'src/main/java'
}
}
}
// Establish a provided scope
configurations {
provided {
description = 'Dependencies needed for compile but are provided at runtime or not needed'
transitive = false
visible = false
}
compile.extendsFrom provided
}
sourceSets {
main.compileClasspath += configurations.provided
main.runtimeClasspath -= configurations.provided
test.compileClasspath += configurations.provided
}
sourceSets.test.java.srcDir 'src/main/java'

}

3 changes: 2 additions & 1 deletion gradle/buildscript.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Executed in context of buildscript
repositories {
// Repo in addition to maven central
maven {
name 'build-repo'
url 'https://github.com/Netflix-Skunkworks/build-repo/raw/master/releases/'
url 'https://raw.github.com/Netflix-Skunkworks/build-repo/master/releases/' // gradle-release/gradle-release/1.0-SNAPSHOT/gradle-release-1.0-SNAPSHOT.jar
}
}
dependencies {
Expand Down
14 changes: 14 additions & 0 deletions gradle/convention.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ subprojects { project ->
// Ensure output is on a new line
javadoc.doFirst { println "" }

configurations {
provided {
description = 'much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive.'
transitive = false
visible = false
}
}

project.sourceSets {
main.compileClasspath += project.configurations.provided
main.runtimeClasspath -= project.configurations.provided
test.compileClasspath += project.configurations.provided
test.runtimeClasspath += project.configurations.provided
}
}

task aggregateJavadoc(type: Javadoc) {
Expand Down
1 change: 1 addition & 0 deletions hystrix-contrib/hystrix-metrics-event-stream/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
compile project(':hystrix-core')
compile 'org.codehaus.jackson:jackson-core-asl:1.9.2'
provided 'javax.servlet:servlet-api:2.5'
provided 'junit:junit:4.10'
}
4 changes: 3 additions & 1 deletion hystrix-examples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
apply plugin: 'java'
dependencies {
compile project(':hystrix-core')
provided 'junit:junit:4.10'
}

task(runDemo, dependsOn: 'classes', type: JavaExec) {
main = 'com.netflix.hystrix.examples.demo.HystrixCommandDemo'
classpath = sourceSets.main.runtimeClasspath
}
}