Use new Plugin injection method

This commit is contained in:
LooKeR 2022-03-04 00:04:17 +05:30
parent fb019bb283
commit cb568c84e5
2 changed files with 22 additions and 17 deletions

View File

@ -1,17 +1,11 @@
buildscript { plugins {
repositories { id 'com.android.application' version '7.1.2' apply false
google() id 'com.android.library' version '7.1.2' apply false
mavenCentral() id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
}
} }
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: "kotlin-kapt" apply plugin: "kotlin-kapt"
android { android {
@ -45,6 +39,7 @@ android {
} }
kotlinOptions { kotlinOptions {
jvmTarget = '11'
freeCompilerArgs = ['-Xjvm-default=compatibility'] freeCompilerArgs = ['-Xjvm-default=compatibility']
} }
@ -120,12 +115,6 @@ android {
} }
} }
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies { dependencies {
// Core // Core

16
settings.gradle Normal file
View File

@ -0,0 +1,16 @@
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
rootProject.name = "Droidify"