Update Gradle/AGP

This commit is contained in:
arkon 2021-11-28 10:53:40 -05:00
parent 44f3d232f6
commit 0fae295939
4 changed files with 27 additions and 5 deletions

4
.jitpack.yml Normal file
View File

@ -0,0 +1,4 @@
jdk:
- openjdk11
install:
- ./gradlew build :library:publishToMavenLocal

View File

@ -7,7 +7,7 @@ buildscript {
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.1.3' classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong

View File

@ -1,6 +1,5 @@
#Sun Jan 03 22:55:02 EST 2021
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip

View File

@ -1,5 +1,8 @@
apply plugin: 'com.android.library' plugins {
apply plugin: 'kotlin-android' id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}
android { android {
compileSdkVersion 29 compileSdkVersion 29
@ -30,3 +33,19 @@ repositories {
mavenCentral() mavenCentral()
google() google()
} }
task androidSourcesJar(type: Jar) {
classifier 'sources'
from android.sourceSets.main.java.srcDirs
}
project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
artifact androidSourcesJar
}
}
}
}