Skip to content

Commit

Permalink
feat: Publish Espresso server library to JitPack (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
technoir42 authored Jul 11, 2024
1 parent 346b2b0 commit 9445667
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions espresso-server/library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("com.android.library")
kotlin("android")
`maven-publish`
}

val appiumCompileSdk: String by project
Expand Down Expand Up @@ -51,6 +52,22 @@ android {
targetSdk = appiumTargetSdk.toInt()
unitTests.isReturnDefaultValues = true
}

publishing {
singleVariant("release") {
withSourcesJar()
}
}
}

publishing {
publications {
register<MavenPublication>("release") {
afterEvaluate {
from(components["release"])
}
}
}
}

dependencies {
Expand Down
5 changes: 5 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jdk:
- openjdk17
install:
- cd espresso-server
- ./gradlew :library:publishToMavenLocal

0 comments on commit 9445667

Please sign in to comment.