Skip to content

Commit

Permalink
Merge remote-tracking branch 'build/multi-project'
Browse files Browse the repository at this point in the history
Conflicts:
	.gitignore
	build.gradle
	gradle.properties
	gradle/buildscript.gradle
	gradle/convention.gradle
	settings.gradle
  • Loading branch information
Justin Ryan committed Dec 14, 2012
2 parents 9dec369 + 36e5b8f commit da57e54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit da57e54

Please sign in to comment.