Can use external or project dependencies to build test app.

This commit is contained in:
Adam Murdoch
2012-09-16 09:11:17 +10:00
parent ac06e9c9b5
commit b44e037b05
2 changed files with 17 additions and 6 deletions

View File

@@ -4,8 +4,17 @@ mainClassName = 'net.rubygrapefruit.platform.test.Main'
applicationName = 'native-platform-test'
archivesBaseName = 'native-platform-test'
dependencies {
compile project(':')
if (project.hasProperty('remote-artifacts')) {
repositories {
maven { url "$rootProject.buildDir/repo" }
}
dependencies {
compile "net.rubygrapefruit:native-platform:${version}"
}
} else {
dependencies {
compile project(':')
}
}
configurations.archives.artifacts.clear()