1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 09:52:16 -05:00

Tests-on-jvm should be a subproject

This commit is contained in:
Jan Berkel 2014-12-17 12:47:39 +01:00
parent 5248350953
commit cc6c6bf096
3 changed files with 11 additions and 10 deletions

View File

@ -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
}

View File

@ -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'

View File

@ -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'
}