From d806003418e1d08bdc0b6e2e8fbc68de983959d7 Mon Sep 17 00:00:00 2001 From: ieow Date: Fri, 15 Dec 2023 16:39:58 +0800 Subject: [PATCH] feat: jitpack config --- jitpack.yaml | 4 ++++ settings.gradle | 1 + tkey/build.gradle | 9 +++++++++ 3 files changed, 14 insertions(+) create mode 100644 jitpack.yaml diff --git a/jitpack.yaml b/jitpack.yaml new file mode 100644 index 0000000..b928943 --- /dev/null +++ b/jitpack.yaml @@ -0,0 +1,4 @@ +jdk: + - openjdk11 + install: + - ./gradlew :tkey:build :tkey:publishToMavenLocal \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index c1f1b3b..e0fad8a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -3,6 +3,7 @@ pluginManagement { gradlePluginPortal() google() mavenCentral() + maven { url "https://jitpack.io" } } } diff --git a/tkey/build.gradle b/tkey/build.gradle index b0e71c7..f26067c 100644 --- a/tkey/build.gradle +++ b/tkey/build.gradle @@ -1,5 +1,6 @@ plugins { id 'com.android.library' + id 'maven-publish' } apply plugin: 'jacoco' @@ -81,4 +82,12 @@ afterEvaluate { javadoc.classpath += files(android.libraryVariants.collect { variant -> variant.javaCompileProvider.get().classpath.files }) + + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } } \ No newline at end of file