From b2e4988703a2c04299805e8de70dffe9175c831a Mon Sep 17 00:00:00 2001 From: zeropercenthappy Date: Thu, 16 Sep 2021 19:08:22 +0800 Subject: [PATCH] Fix jitpack config; --- jitpack.yml | 4 +++- retrofitLib/build.gradle | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/jitpack.yml b/jitpack.yml index 46c8529..c133398 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,2 +1,4 @@ jdk: - - openjdk11 \ No newline at end of file + - openjdk11 +install: + - ./gradlew build :retrofitLib:publishToMavenLocal \ No newline at end of file diff --git a/retrofitLib/build.gradle b/retrofitLib/build.gradle index 8bba7ae..f3c09a2 100644 --- a/retrofitLib/build.gradle +++ b/retrofitLib/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' +apply plugin: 'maven-publish' group = 'com.github.zeropercenthappy' android { @@ -9,8 +10,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 30 - versionCode 131 - versionName "1.3.1" + versionCode 132 + versionName "1.3.2" testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' @@ -32,6 +33,16 @@ android { } +project.afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } +} + dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])