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.
This commit is contained in:
imashnake0 2022-06-20 22:43:52 -04:00
parent a77d358a42
commit 07a01ffddb
2 changed files with 13 additions and 14 deletions

View File

@ -1,18 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. plugins {
buildscript { id 'com.android.application' apply false version '7.2.1'
repositories { id 'org.jetbrains.kotlin.android' apply false version '1.7.0'
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
}
} }
task clean(type: Delete) { task clean(type: Delete) {
delete rootProject.buildDir delete rootProject.buildDir
} }

View File

@ -1,3 +1,11 @@
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement { dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories { repositories {
@ -5,5 +13,6 @@ dependencyResolutionManagement {
mavenCentral() mavenCentral()
} }
} }
rootProject.name = "LibreTube" rootProject.name = "LibreTube"
include ':app' include ':app'