Skip to content

Commit

Permalink
Add maven publishing build config
Browse files Browse the repository at this point in the history
  • Loading branch information
enginebai committed Sep 16, 2021
1 parent 834bfe9 commit a249303
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ plugins {

group = "com.github.enginebai"

afterEvaluate {
publishing {
publications {
create<MavenPublication>("library") {
groupId = "com.github.enginebai"
artifactId = "AndroidBase"
version = "1.0.1"
// base-release.aar = $moduleName-$buildType.aar
artifact("$buildDir/outputs/aar/base-release.aar")
}
}
}
}

configAndroid()
importCommonDependencies()

Expand Down
5 changes: 5 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
jdk: openjdk11

before_install:
- ./gradlew clean -xtest -xlint :base:assembleRelease
install:
- ./gradlew :base:publishToMavenLocal

0 comments on commit a249303

Please sign in to comment.