Skip to content

Commit

Permalink
Use localdeps.gradle to define which local directories to optionally …
Browse files Browse the repository at this point in the history
…depend on
  • Loading branch information
niklasl committed Jun 16, 2016
1 parent ab9f4c2 commit 0c40afd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
6 changes: 5 additions & 1 deletion harvesters/build.gradle
Expand Up @@ -81,7 +81,11 @@ dependencies {
def groovyVersion=GroovySystem.getVersion()
def jettyVersion="8.1.16.v20140903"

compile 'com.github.libris:whelk-core:0.1.4'
if ('useLocalDeps' in System.properties.keySet()) {
compile project(':../../whelk-core')
} else {
compile 'com.github.libris:whelk-core:0.1.4'
}

// Common tools
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
Expand Down
1 change: 1 addition & 0 deletions harvesters/settings.gradle
@@ -0,0 +1 @@
apply from: file('../localdeps.gradle')
8 changes: 5 additions & 3 deletions importers/build.gradle
Expand Up @@ -34,9 +34,11 @@ dependencies {

// LIBRISXL modules
compile project(':../harvesters')
compile('../../whelk-core' in project.subprojects*.name?
project(':../../whelk-core') :
'com.github.libris:whelk-core:0.1.4')
if ('useLocalDeps' in System.properties.keySet()) {
compile project(':../../whelk-core')
} else {
compile 'com.github.libris:whelk-core:0.1.4'
}

// Common tools
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
Expand Down
8 changes: 2 additions & 6 deletions importers/settings.gradle
@@ -1,7 +1,3 @@
include '../harvesters'
apply from: file('../localdeps.gradle')

if ('useLocalDeps' in System.properties.keySet()) {
if (new File('../../whelk-core').directory) {
include ':../../whelk-core'
}
}
include '../harvesters'
5 changes: 5 additions & 0 deletions localdeps.gradle
@@ -0,0 +1,5 @@
if ('useLocalDeps' in System.properties.keySet()) {
if (new File('../../whelk-core').directory) {
include ':../../whelk-core'
}
}

0 comments on commit 0c40afd

Please sign in to comment.