Skip to content

Commit

Permalink
Merge pull request jpos#79 from vsalaman/no-root-build
Browse files Browse the repository at this point in the history
Avoids creating build directory at root level
  • Loading branch information
ar committed Jan 1, 2015
2 parents 5346092 + d281d03 commit 2df89ae
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
apply from: 'jpos/libraries.gradle'

allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
}

subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'pmd'
Expand All @@ -16,6 +19,10 @@ allprojects {
'https://oss.sonatype.org/content/repositories/snapshots/' :
'https://oss.sonatype.org/service/local/staging/deploy/maven2';

configurations.compile.transitive = true
javadoc.failOnError = false
pmd.ignoreFailures = true

sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
Expand Down Expand Up @@ -96,32 +103,23 @@ allprojects {
}
}
}
}

subprojects {
configurations.compile.transitive = true
javadoc.failOnError = false
pmd.ignoreFailures = true
}

task aggregatedJavadoc (type: Javadoc, description: "Aggregated Javadocs") {
source subprojects.collect {project ->
project.sourceSets.main.allJava
}
destinationDir = new File(buildDir, 'docs/javadoc')
classpath = files(subprojects.collect {project ->
project.sourceSets.main.compileClasspath})
failOnError = false
}

task wrapper( type: Wrapper ) {
gradleVersion = '2.2.1'
task aggregatedJavadoc (type: Javadoc, description: "Aggregated Javadocs") {
source subprojects.collect {project ->
project.sourceSets.main.allJava
}
destinationDir = new File(buildDir, 'docs/javadoc')
classpath = files(subprojects.collect {project ->
project.sourceSets.main.compileClasspath})
failOnError = false
}
}

// Configure IDEA to use Git
idea.project.ipr {
withXml { provider ->
provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
}
withXml { provider -> provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git' }
}

task wrapper( type: Wrapper ) {
gradleVersion = '2.2.1'
}

0 comments on commit 2df89ae

Please sign in to comment.