diff --git a/espresso-server/library/build.gradle.kts b/espresso-server/library/build.gradle.kts index f8c6036b..c5d47a89 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