From 4135f639455cde23846678ac31b32d9e12e58ac7 Mon Sep 17 00:00:00 2001 From: Sergey Chelombitko Date: Thu, 20 Jun 2024 15:44:14 +0100 Subject: [PATCH] Publish to JitPack --- espresso-server/library/build.gradle.kts | 17 +++++++++++++++++ jitpack.yml | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 jitpack.yml diff --git a/espresso-server/library/build.gradle.kts b/espresso-server/library/build.gradle.kts index 82aa4e76..82917021 100644 --- a/espresso-server/library/build.gradle.kts +++ b/espresso-server/library/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("com.android.library") kotlin("android") + `maven-publish` } val appiumCompileSdk: String by project @@ -51,6 +52,22 @@ android { targetSdk = appiumTargetSdk.toInt() unitTests.isReturnDefaultValues = true } + + publishing { + singleVariant("release") { + withSourcesJar() + } + } +} + +publishing { + publications { + register("release") { + afterEvaluate { + from(components["release"]) + } + } + } } dependencies { diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..9406f86b --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,5 @@ +jdk: + - openjdk17 +install: + - cd espresso-server + - ./gradlew :library:publishToMavenLocal