Skip to content

Commit

Permalink
Merge pull request #20 from Shek863/master
Browse files Browse the repository at this point in the history
change config
  • Loading branch information
Shek863 authored Sep 7, 2023
2 parents 8e41cd9 + 693f335 commit 36a30f0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
33 changes: 5 additions & 28 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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
}

2 changes: 1 addition & 1 deletion deploy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
22 changes: 22 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 36a30f0

Please sign in to comment.