diff --git a/build.gradle b/build.gradle index 6c29ea6e..b493323d 100644 --- a/build.gradle +++ b/build.gradle @@ -1,17 +1,11 @@ -buildscript { - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' - classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10' - } +plugins { + id 'com.android.application' version '7.1.2' apply false + id 'com.android.library' version '7.1.2' apply false + id 'org.jetbrains.kotlin.android' version '1.6.10' apply false } apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' +apply plugin: 'org.jetbrains.kotlin.android' apply plugin: "kotlin-kapt" android { @@ -45,6 +39,7 @@ android { } kotlinOptions { + jvmTarget = '11' freeCompilerArgs = ['-Xjvm-default=compatibility'] } @@ -120,12 +115,6 @@ android { } } -repositories { - google() - mavenCentral() - maven { url "https://jitpack.io" } -} - dependencies { // Core diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 00000000..80bf90cd --- /dev/null +++ b/settings.gradle @@ -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" \ No newline at end of file