diff options
author | Michael Hoisie <hoisie@google.com> | 2020-08-06 22:29:03 -0700 |
---|---|---|
committer | Michael Hoisie <hoisie@google.com> | 2020-08-07 11:02:22 -0700 |
commit | 0f975950f4a8e6f87ae29595764e07e74455f687 (patch) | |
tree | e2ebcc87d5602abadd3811b877fbb3a8943a2db9 /pluginapi | |
parent | 5f51a9243f330491ba6c9f05bfa7cef0ccaf3e22 (diff) | |
download | robolectric-0f975950f4a8e6f87ae29595764e07e74455f687.tar.gz |
Drop maven-ant-tasks dependency and fetch from Maven manually
The dependency maven-ant-tasks is outdated and has security issues. Replace the
maven dependency fetching logic with simple fetching through HTTPUrlConnection.
There was an initial attempt to use maven-resolver, but the version of Apache
HttpClient that uses conflicts with the HttpClient that must be bundled for
Android 16-18. Because the use cases for Robolectric is very narrow (only
fetching single artifacts with no dependencies), it is feasible to use this
approach.
Diffstat (limited to 'pluginapi')
-rw-r--r-- | pluginapi/build.gradle | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pluginapi/build.gradle b/pluginapi/build.gradle index 2e59f6b3c..fb41d4a38 100644 --- a/pluginapi/build.gradle +++ b/pluginapi/build.gradle @@ -4,10 +4,6 @@ apply plugin: org.robolectric.gradle.DeployedRoboJavaModulePlugin dependencies { compileOnly 'com.google.code.findbugs:jsr305:3.0.2' api project(":annotations") - api "org.apache.ant:ant:1.8.0" - api("org.apache.maven:maven-ant-tasks:2.1.3") { - exclude group: "junit", module: "junit" - } testImplementation "junit:junit:4.12" testImplementation "com.google.truth:truth:1.0.1" |