From 30de1d7891733880a676e593a4a0ab2df85d9bf6 Mon Sep 17 00:00:00 2001 From: Benoit Marty <benoit@matrix.org> Date: Thu, 10 Jun 2021 12:50:02 +0200 Subject: [PATCH] Fix compilation issue with Jitpack --- jitpack.yml | 3 +++ matrix-sdk-android/build.gradle | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 jitpack.yml diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..e3181a3c --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,3 @@ +install: + - ./gradlew :matrix-sdk-android:build :matrix-sdk-android:publishToMavenLocal -x :matrix-sdk-android:test + - find . -name "*.aar" diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle index 973d09be..b80affa3 100644 --- a/matrix-sdk-android/build.gradle +++ b/matrix-sdk-android/build.gradle @@ -3,6 +3,7 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-parcelize' apply plugin: 'realm-android' +apply plugin: 'maven-publish' buildscript { repositories { @@ -196,3 +197,13 @@ dependencies { androidTestUtil 'androidx.test:orchestrator:1.3.0' } + +project.afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } +} -- GitLab