Skip to content

Commit b0a409c

Browse files
Update build.gradle
1 parent b807ab8 commit b0a409c

File tree

1 file changed

+46
-10
lines changed

1 file changed

+46
-10
lines changed

mode/tools/SDKUpdater/build.gradle

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,57 @@ dependencies {
1212

1313
implementationCopy group: "com.android.tools", name: "sdklib", version: "${toolsLibVersion}"
1414
implementationCopy group: "com.android.tools", name: "repository", version: "${toolsLibVersion}"
15+
implementationCopy group: "com.android.tools", name: "common", version: "${toolsLibVersion}"
1516
}
1617

1718
// This task copies the gradle tooling jar into the mode folder
1819
task copyToLib(type: Copy) {
1920
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+
3066
}
3167
into "lib"
3268
}

0 commit comments

Comments
 (0)