From 601da6213b47fe58f1c76f90a55c6f64fbe4a0e7 Mon Sep 17 00:00:00 2001 From: FunkyMuse Date: Wed, 4 Aug 2021 10:27:31 +0200 Subject: [PATCH] update to gradle 7.0.0 --- build.gradle | 6 +++--- crashyreporter/build.gradle | 13 ++++++++++++- jitpack.yml | 6 ++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 jitpack.yml diff --git a/build.gradle b/build.gradle index 2f6d304..6dcda99 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { ext.kotlin_version = "1.5.21" repositories { google() - jcenter() + mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' @@ -13,7 +13,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } @@ -28,7 +28,7 @@ ext { androidXTestCoreVersion = '1.4.0' androidXTestExtKotlinRunnerVersion = '1.1.3' androidXTestRulesVersion = '1.2.0-beta01' - robolectricVersion = '4.4' + robolectricVersion = '4.6.1' archTestingVersion = '2.1.0' startup = '1.0.0' } \ No newline at end of file diff --git a/crashyreporter/build.gradle b/crashyreporter/build.gradle index 4b1563e..7ec01b3 100644 --- a/crashyreporter/build.gradle +++ b/crashyreporter/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' +apply plugin: 'maven-publish' android { compileSdkVersion 30 @@ -51,4 +52,14 @@ dependencies { testImplementation "androidx.test:core-ktx:$androidXTestCoreVersion" testImplementation "org.robolectric:robolectric:$robolectricVersion" testImplementation "androidx.arch.core:core-testing:$archTestingVersion" -} \ No newline at end of file +} + +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } +} diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..1f57f9f --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,6 @@ +jdk: + - openjdk11 +install: + - ./gradlew publishToMavenLocal + - find . -name "*.aar" +