From 07a01ffddba443a74e9bea4facfaf8849e449adb Mon Sep 17 00:00:00 2001 From: imashnake0 Date: Mon, 20 Jun 2022 22:43:52 -0400 Subject: [PATCH] Replace classpath with `plugins` DSL Replaced the old way of adding plugins to the classpath with plugins DSL: https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block. --- build.gradle | 18 ++++-------------- settings.gradle | 9 +++++++++ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index 0a229bb5e..540bd4371 100644 --- a/build.gradle +++ b/build.gradle @@ -1,18 +1,8 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -buildscript { - repositories { - google() - mavenCentral() - } - dependencies { - classpath 'com.android.tools.build:gradle:7.2.1' - classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } +plugins { + id 'com.android.application' apply false version '7.2.1' + id 'org.jetbrains.kotlin.android' apply false version '1.7.0' } task clean(type: Delete) { delete rootProject.buildDir -} \ No newline at end of file +} diff --git a/settings.gradle b/settings.gradle index be6d8ccca..d89938f77 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,11 @@ +pluginManagement { + repositories { + gradlePluginPortal() + google() + mavenCentral() + } +} + dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { @@ -5,5 +13,6 @@ dependencyResolutionManagement { mavenCentral() } } + rootProject.name = "LibreTube" include ':app'