From 995def932e5a7ecbba613ef81201c2346af9534f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 28 May 2021 18:12:50 +0200 Subject: [PATCH] Fix issue with Jitpack build --- android/jitpack.yml | 3 +++ android/olm-sdk/build.gradle | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 android/jitpack.yml diff --git a/android/jitpack.yml b/android/jitpack.yml new file mode 100644 index 0000000..17321ad --- /dev/null +++ b/android/jitpack.yml @@ -0,0 +1,3 @@ +install: + - ./gradlew :olm-sdk:build :olm-sdk:publishToMavenLocal -x :olm-sdk:test + - find . -name "*.aar" \ No newline at end of file diff --git a/android/olm-sdk/build.gradle b/android/olm-sdk/build.gradle index e8f0f49..52a1337 100644 --- a/android/olm-sdk/build.gradle +++ b/android/olm-sdk/build.gradle @@ -1,6 +1,7 @@ import org.apache.tools.ant.taskdefs.condition.Os apply plugin: 'com.android.library' +apply plugin: 'maven-publish' android { compileSdkVersion 30 @@ -128,3 +129,13 @@ dependencies { androidTestImplementation 'androidx.test:rules:1.3.0' androidTestImplementation 'androidx.test.ext:junit:1.1.2' } + +project.afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } +}