Use precompiled script plugins

This is a clean-up for b/64551265.

Bug: 64551265
Test: existing
Change-Id: I0e07ee04c1d31706040b7ee2540d33db4024c36d
diff --git a/build.gradle b/build.gradle
index 70fd39f..598a000 100644
--- a/build.gradle
+++ b/build.gradle
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-apply from: "$rootDir/buildSrc/base/baseJava.gradle"
+apply plugin: 'com.android.tools.java-library'
 
 sourceSets {
     main {
diff --git a/java/com/google/devtools/build/android/desugar/runtime/build.gradle b/java/com/google/devtools/build/android/desugar/runtime/build.gradle
index 46bc883..cf04ac6 100644
--- a/java/com/google/devtools/build/android/desugar/runtime/build.gradle
+++ b/java/com/google/devtools/build/android/desugar/runtime/build.gradle
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-apply from: "$rootDir/buildSrc/base/baseJava.gradle"
+apply plugin: 'com.android.tools.java-library'
 
 sourceSets {
     main {