From 145aed90bffa4331206b466f53e35b69aaf6563d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adriel=20Caf=C3=A9?= Date: Sun, 8 Aug 2021 22:31:22 -0300 Subject: [PATCH] chore: update dependencies --- app/build.gradle | 9 +++------ build.gradle | 9 +++++---- gradle/wrapper/gradle-wrapper.properties | 2 +- library/build.gradle | 24 ++++++++++++++++++------ 4 files changed, 27 insertions(+), 17 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d64da0f..de20f55 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,14 +3,13 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 29 + compileSdkVersion 30 defaultConfig { applicationId "cafe.adriel.krumbsview.demo" minSdkVersion 14 - targetSdkVersion 29 + targetSdkVersion 30 versionCode 1 versionName "1.0" - vectorDrawables.useSupportLibrary true } buildTypes { release { @@ -21,8 +20,6 @@ android { } dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation "androidx.appcompat:appcompat:1.1.0" + implementation "androidx.appcompat:appcompat:1.3.1" implementation project(":library") } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 57ca5c6..9c9b4ce 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,12 @@ buildscript { - ext.kotlin_version = '1.3.70' + ext.kotlin_version = '1.5.21' repositories { google() - jcenter() + mavenCentral() + gradlePluginPortal() } dependencies { - classpath 'com.android.tools.build:gradle:3.6.1' + classpath 'com.android.tools.build:gradle:7.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -13,7 +14,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() maven { url "https://jitpack.io" } } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9aa9345..390223a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip diff --git a/library/build.gradle b/library/build.gradle index ca89090..619c0e1 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,19 +1,20 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' +apply plugin: 'maven-publish' android { - compileSdkVersion 29 + compileSdkVersion 30 defaultConfig { minSdkVersion 14 - targetSdkVersion 29 + targetSdkVersion 30 versionCode 1 versionName "1.0" vectorDrawables.useSupportLibrary true } buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } @@ -24,7 +25,18 @@ androidExtensions { } dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation "androidx.appcompat:appcompat:1.1.0" + implementation "androidx.appcompat:appcompat:1.3.1" +} + +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + + groupId = "com.github.adrielcafe" + artifactId = "krumbsview" + } + } + } } \ No newline at end of file