File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -6,24 +6,9 @@ allprojects { project ->
6
6
System . out. println " kotlin-lsp-project ${ project.name} "
7
7
8
8
if (project. hasProperty(' android' )) {
9
- def rootDir = project. rootDir
10
-
11
- def level = " 21"
12
- if (project. android. defaultConfig. targetSdkVersion != null ) {
13
- level = project. android. defaultConfig. targetSdkVersion. getApiLevel()
14
- System . out. println " kotlin-lsp-target android-$level "
9
+ project. android. getBootClasspath(). each {
10
+ System . out. println " kotlin-lsp-gradle $it "
15
11
}
16
-
17
- def localProperties = new File (rootDir, " local.properties" )
18
-
19
- if (localProperties. exists()) {
20
- Properties properties = new Properties ()
21
- localProperties. withInputStream { instr -> properties. load(instr) }
22
- def sdkDir = properties. getProperty(' sdk.dir' )
23
- def androidJarPath = sdkDir + " /platforms/android-$level /android.jar"
24
- System . out. println " kotlin-lsp-gradle $androidJarPath "
25
- }
26
-
27
12
if (project. android. hasProperty(' applicationVariants' )) {
28
13
project. android. applicationVariants. all { variant ->
29
14
variant. getCompileClasspath(). each {
You can’t perform that action at this time.
0 commit comments