Tests-on-jvm should be a subproject
This commit is contained in:
parent
5248350953
commit
cc6c6bf096
3 changed files with 11 additions and 10 deletions
|
@ -77,7 +77,9 @@ android {
|
|||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
if (project.hasProperty('storeFile')) {
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,11 +107,6 @@ task checkstyle(type: Checkstyle) {
|
|||
classpath = files()
|
||||
}
|
||||
|
||||
task testsOnJVM(type: GradleBuild, dependsOn: assembleDebug) {
|
||||
buildFile = 'tests-on-jvm/build.gradle'
|
||||
tasks = ['test']
|
||||
}
|
||||
|
||||
if (project.hasProperty('keyAlias')) {
|
||||
android.signingConfigs.release.keyAlias = keyAlias
|
||||
}
|
||||
|
|
|
@ -2,3 +2,4 @@ include ':plugins:Android-PullToRefresh:library'
|
|||
include ':plugins:ckChangeLog:library'
|
||||
include ':plugins:HoloColorPicker'
|
||||
include ':plugins:openpgp-api-library'
|
||||
include ':tests-on-jvm'
|
||||
|
|
|
@ -5,8 +5,8 @@ repositories {
|
|||
apply plugin: 'java'
|
||||
|
||||
dependencies {
|
||||
testCompile 'junit:junit:4.+'
|
||||
testCompile fileTree(dir: '../libs', include: '*.jar')
|
||||
testCompile project(':')
|
||||
testCompile 'junit:junit:4.12'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
@ -17,14 +17,17 @@ sourceSets {
|
|||
}
|
||||
|
||||
test {
|
||||
compileClasspath += files(['../build/intermediates/classes/debug'])
|
||||
runtimeClasspath += files(['../build/intermediates/classes/debug'])
|
||||
compileClasspath += files(rootProject.compileDebugJava.destinationDir)
|
||||
runtimeClasspath += files(rootProject.compileDebugJava.destinationDir)
|
||||
runtimeClasspath += rootProject.compileDebugJava.classpath
|
||||
java {
|
||||
srcDirs = ['src']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
test.dependsOn ':compileDebugJava'
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '1.11'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue