From e927b7f4d4c8b6eae1c386313964bba469989de1 Mon Sep 17 00:00:00 2001 From: Minh-Phuc Tran <25026967+phuctm97@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:59:51 +0700 Subject: [PATCH] Fix deprecated Maven plugin being used by Jitpack --- jitpack.yml | 4 +++- sdk/build.gradle | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/jitpack.yml b/jitpack.yml index 46c8529..52af312 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,2 +1,4 @@ jdk: - - openjdk11 \ No newline at end of file + - openjdk11 +install: + - ./gradlew :sdk:build :sdk:publishToMavenLocal \ No newline at end of file diff --git a/sdk/build.gradle b/sdk/build.gradle index a144423..4c05579 100644 --- a/sdk/build.gradle +++ b/sdk/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.library' id 'kotlin-android' + id 'maven-publish' } android { @@ -45,4 +46,14 @@ dependencies { testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} + +project.afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } } \ No newline at end of file