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.
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
}
}

View File

@ -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'