Replace android sdk dependencies with custom project build, cleanup update_dependencies.xml
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
98204aa2d3
commit
0b63e11ea8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user