Replace android sdk dependencies with custom project build, cleanup update_dependencies.xml

This commit is contained in:
Ilya Chernikov
2017-11-15 18:50:21 +01:00
committed by Vyacheslav Gerasimov
parent 98204aa2d3
commit 0b63e11ea8
19 changed files with 184 additions and 222 deletions
+7 -1
View File
@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply { plugin("kotlin") }
@@ -18,7 +19,7 @@ dependencies {
compile(project(":idea:ide-common"))
compile(project(":idea:idea-gradle"))
compile(preloadedDeps("dx", subdir = "android-5.0/lib"))
compile(project(":custom-dependencies:android-sdk", configuration = "dxJar"))
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
testCompile(project(":idea:idea-test-framework")) { isTransitive = false }
@@ -56,8 +57,13 @@ sourceSets {
"test" { projectDefault() }
}
tasks.withType<KotlinCompile> {
dependsOn(":custom-dependencies:android-sdk:extractDxJar")
}
projectTest {
workingDir = rootDir
systemProperty("android.sdk", androidSdkPath())
}
testsJar {}
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.android;
import com.android.annotations.NonNull;
import com.intellij.openapi.application.PathManager;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import java.io.File;
@@ -29,7 +30,7 @@ import java.io.File;
public class TestUtils {
@NonNull
public static File getSdk() {
return new File(PathManager.getHomePath() + "/../dependencies/androidSDK");
return KotlinTestUtils.findAndroidSdk();
}
@NonNull