Updated Gradle, Kotlin and replaced jcenter() with mavenCentral() and Updated dependencies

This commit is contained in:
Mohit 2021-06-08 21:15:37 +05:30
parent fd24e22e33
commit 74e8287cf1
2 changed files with 8 additions and 10 deletions

View File

@ -1,17 +1,16 @@
buildscript { buildscript {
ext.versions = [ ext.versions = [
android: '3.4.1', kotlin: '1.5.10'
kotlin: '1.3.72'
] ]
repositories { repositories {
google() google()
jcenter() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:' + versions.android
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin
classpath 'com.android.tools.build:gradle:4.2.1'
} }
} }
@ -20,7 +19,6 @@ apply plugin: 'kotlin-android'
android { android {
compileSdkVersion 29 compileSdkVersion 29
buildToolsVersion '29.0.3'
defaultConfig { defaultConfig {
archivesBaseName = 'droidify' archivesBaseName = 'droidify'
@ -112,12 +110,12 @@ android {
repositories { repositories {
google() google()
jcenter() mavenCentral()
} }
dependencies { dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin
implementation 'androidx.fragment:fragment:1.3.0' implementation 'androidx.fragment:fragment-ktx:1.3.4'
implementation 'androidx.viewpager2:viewpager2:1.0.0' implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0' implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2' implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'

View File

@ -1,6 +1,6 @@
#Thu Feb 25 13:27:47 IST 2021 #Fri Jun 04 15:33:52 IST 2021
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-rc-1-bin.zip
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip zipStoreBase=GRADLE_USER_HOME