From e97bc509b4eb546f60a3c9910a142db78fa341d5 Mon Sep 17 00:00:00 2001 From: Faierbel Date: Wed, 8 Sep 2021 02:33:03 +0200 Subject: [PATCH] Migrate to maven publish plugin --- jitpack.yml | 4 +++- library/build.gradle | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/jitpack.yml b/jitpack.yml index 46c8529..fd2dff7 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,2 +1,4 @@ jdk: - - openjdk11 \ No newline at end of file + - openjdk11 +install: + - ./gradlew build :library:publishToMavenLocal \ No newline at end of file diff --git a/library/build.gradle b/library/build.gradle index b80a612..d579412 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' +apply plugin: 'maven-publish' android { compileSdkVersion 30 @@ -23,6 +24,16 @@ android { } } +project.afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } +} + dependencies { implementation "androidx.appcompat:appcompat:1.3.1" implementation "androidx.core:core-ktx:1.6.0"