From 693f33519d4e1145ad1bd4e9a282c897301e4fca Mon Sep 17 00:00:00 2001 From: Montcho Shegun Date: Thu, 7 Sep 2023 15:50:58 +0100 Subject: [PATCH] change config --- build.gradle | 33 +++++---------------------------- deploy.gradle | 2 +- lib/build.gradle | 2 ++ settings.gradle | 22 ++++++++++++++++++++++ 4 files changed, 30 insertions(+), 29 deletions(-) diff --git a/build.gradle b/build.gradle index 8577a04..ee42181 100644 --- a/build.gradle +++ b/build.gradle @@ -1,34 +1,11 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. - -buildscript { - ext.kotlin_version = '1.8.20' - repositories { - google() - mavenCentral() - maven { - url "https://plugins.gradle.org/m2/" - } - } - dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } -} - -allprojects { - repositories { - google() - mavenCentral() - maven { - url "https://plugins.gradle.org/m2/" - } - } +plugins { + id 'com.android.application' version '8.0.2' apply false + id 'com.android.library' version '8.0.2' apply false + id 'org.jetbrains.kotlin.android' version '1.8.20' apply false } task clean(type: Delete) { delete rootProject.buildDir } + diff --git a/deploy.gradle b/deploy.gradle index f8baa60..81052f9 100644 --- a/deploy.gradle +++ b/deploy.gradle @@ -16,7 +16,7 @@ publishing { artifact("$buildDir/outputs/aar/lib-release.aar") groupId 'co.opensi.kkiapay' // replace with your groupId artifactId 'kkiapay' // replace with your artifactId - version VERSION_NAME + version "1.4.0" //The publication doesn't know about our dependencies, so we have to manually add them to the pom pom.withXml { diff --git a/lib/build.gradle b/lib/build.gradle index d747d06..c0b3c9f 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -52,3 +52,5 @@ dependencies { implementation 'commons-codec:commons-codec:1.11' implementation 'com.google.code.gson:gson:2.9.0' } + +//apply from: rootProject.file('deploy.gradle') \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 12ed529..0da9040 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,23 @@ +pluginManagement { + repositories { + google() + mavenCentral() + maven { url 'https://jitpack.io' } + maven { + url "https://plugins.gradle.org/m2/" + } + gradlePluginPortal() + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + maven { url 'https://jitpack.io' } + maven { + url "https://plugins.gradle.org/m2/" + } + } +} include ':sample', ':lib' \ No newline at end of file