Gradle update
This commit is contained in:
parent
7444618522
commit
aad277b9f5
@ -23,19 +23,19 @@
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
def androidModule = project(':android-app')
|
def app = project(':android-app')
|
||||||
compile androidModule
|
compile app
|
||||||
|
|
||||||
testCompile androidModule.android.applicationVariants.toList().first().javaCompile.classpath
|
testCompile app.android.applicationVariants.toList().first().javaCompile.classpath
|
||||||
testCompile androidModule.android.applicationVariants.toList().first().javaCompile.outputs.files
|
testCompile app.android.applicationVariants.toList().first().javaCompile.outputs.files
|
||||||
testCompile files(androidModule.plugins.findPlugin("com.android.application").getBootClasspath())
|
testCompile files(app.android.bootClasspath)
|
||||||
|
|
||||||
testCompile 'junit:junit:4.11'
|
testCompile 'junit:junit:4.11'
|
||||||
testCompile 'org.robolectric:robolectric:2.3'
|
testCompile 'org.robolectric:robolectric:2.3'
|
||||||
testCompile 'org.mockito:mockito-all:1.9.5'
|
testCompile 'org.mockito:mockito-all:1.9.5'
|
||||||
testCompile 'org.skyscreamer:jsonassert:1.2.3'
|
testCompile 'org.skyscreamer:jsonassert:1.2.3'
|
||||||
testCompile 'com.android.support:support-v4:21.0.3'
|
testCompile 'com.android.support:support-v4:22.1.1'
|
||||||
testCompile 'com.android.support:appcompat-v7:21.0.3'
|
testCompile 'com.android.support:appcompat-v7:22.1.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(Test) {
|
tasks.withType(Test) {
|
||||||
|
@ -56,8 +56,8 @@ dependencies {
|
|||||||
compile 'org.solovyev:common-core:1.0.7'
|
compile 'org.solovyev:common-core:1.0.7'
|
||||||
compile 'org.solovyev:common-text:1.0.7'
|
compile 'org.solovyev:common-text:1.0.7'
|
||||||
compile 'org.solovyev:common-security:1.0.7'
|
compile 'org.solovyev:common-security:1.0.7'
|
||||||
compile 'com.android.support:support-v4:21.0.3'
|
compile 'com.android.support:support-v4:22.1.1'
|
||||||
compile 'com.android.support:appcompat-v7:21.0.3'
|
compile 'com.android.support:appcompat-v7:22.1.1'
|
||||||
compile('ch.acra:acra:4.5.0') {
|
compile('ch.acra:acra:4.5.0') {
|
||||||
exclude group: 'org.json'
|
exclude group: 'org.json'
|
||||||
}
|
}
|
||||||
@ -79,7 +79,7 @@ dependencies {
|
|||||||
|
|
||||||
task androidJavadocs(type: Javadoc) {
|
task androidJavadocs(type: Javadoc) {
|
||||||
source = android.sourceSets.main.java.srcDirs
|
source = android.sourceSets.main.java.srcDirs
|
||||||
classpath += project.files(android.plugin.getBootClasspath().join(File.pathSeparator))
|
classpath += project.files(android.bootClasspath.join(File.pathSeparator))
|
||||||
configurations.compile.each { File file -> classpath += project.files(file.path) }
|
configurations.compile.each { File file -> classpath += project.files(file.path) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@ public String version_name() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int android_sdk_version() {
|
public int android_sdk_version() {
|
||||||
return 21
|
return 22
|
||||||
}
|
}
|
||||||
|
|
||||||
public String android_build_tools_version() {
|
public String android_build_tools_version() {
|
||||||
return '21.1.2'
|
return '22.0.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
public String android_min_sdk_version() {
|
public String android_min_sdk_version() {
|
||||||
@ -24,7 +24,7 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.0.0'
|
classpath 'com.android.tools.build:gradle:1.2.2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user