@@ -12,21 +12,57 @@ dependencies {
12
12
13
13
implementationCopy group : " com.android.tools" , name : " sdklib" , version : " ${ toolsLibVersion} "
14
14
implementationCopy group : " com.android.tools" , name : " repository" , version : " ${ toolsLibVersion} "
15
+ implementationCopy group : " com.android.tools" , name : " common" , version : " ${ toolsLibVersion} "
15
16
}
16
17
17
18
// This task copies the gradle tooling jar into the mode folder
18
19
task copyToLib (type : Copy ) {
19
20
from configurations. implementationCopy. files {
20
- include ' **/annotations-*'
21
- include ' **/common-*'
22
- include ' **/dvlib-*'
23
- include ' **/gson-*'
24
- include ' **/guava-*'
25
- include ' **/httpcore-*'
26
- include ' **/kotlin-stdlib-*'
27
- include ' **/layoutlib-api-*'
28
- include ' **/repository-*'
29
- include ' **/sdklib-*'
21
+ include ' **/*.jar'
22
+ exclude ' **/annotations-*'
23
+ exclude ' **/checker-qual-*.jar'
24
+ exclude ' **/httpclient-*.jar'
25
+ exclude ' **/layoutlib-api-*.jar'
26
+ exclude ' **/commons-codec*.jar'
27
+ exclude ' **/commons-logging*.jar'
28
+ exclude ' **/dvlib-*.jar'
29
+ exclude ' **/error_prone_annotations-*.jar'
30
+ exclude ' **/failureaccess-*.jar'
31
+ exclude ' **/FastInfoset-*.jar'
32
+ exclude ' **/gson-*.jar'
33
+ exclude ' **/httpmime-*.jar'
34
+ exclude ' **/j2objc-*.jar'
35
+ exclude ' **/javax.activation-*.jar'
36
+ exclude ' **/jimfs-*.jar'
37
+ exclude ' **/jna-*.jar'
38
+ exclude ' jsr305*jar'
39
+ exclude ' **/kotlin-stdlib-c*.jar'
40
+ exclude ' **/kotlin-stdlib-jdk7*.jar'
41
+ exclude ' **/kotlin-stdlib-jdk8*.jar'
42
+ exclude ' **/kxml2-*jar'
43
+ exclude ' **/listenablefuture-*jar'
44
+ exclude ' **/stax-*jar'
45
+ exclude ' **/txw2*jar'
46
+
47
+ // uncommenting the following and commenting out the above statements work the same way
48
+ // better to mention both the included and excluded jars to keep a track
49
+
50
+ // include '**/common-*jar'
51
+ // include '**/commons-compress-*jar'
52
+ // include '**/guava-*jar'
53
+ // include '**/httpcore-*jar'
54
+ // include '**/istack-*jar'
55
+ // include '**/jakarta.activation-api-*jar'
56
+ // include '**/jakarta.xml.bind-api-*jar'
57
+ // include '**/jaxb-runtime-*jar'
58
+ // include '**/kotlin-stdlib-1*jar'
59
+ // include '**/shared-*jar'
60
+ // include '**/protos-*jar'
61
+ // include '**/protob*jar'
62
+ // include '**/sdklib-*jar'
63
+ // include '**/repository-*jar'
64
+
65
+
30
66
}
31
67
into " lib"
32
68
}
0 commit comments