Skip to content

Commit a249303

Browse files
committed
Add maven publishing build config
1 parent 834bfe9 commit a249303

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

base/build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ plugins {
66

77
group = "com.github.enginebai"
88

9+
afterEvaluate {
10+
publishing {
11+
publications {
12+
create<MavenPublication>("library") {
13+
groupId = "com.github.enginebai"
14+
artifactId = "AndroidBase"
15+
version = "1.0.1"
16+
// base-release.aar = $moduleName-$buildType.aar
17+
artifact("$buildDir/outputs/aar/base-release.aar")
18+
}
19+
}
20+
}
21+
}
22+
923
configAndroid()
1024
importCommonDependencies()
1125

jitpack.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
jdk: openjdk11
2+
3+
before_install:
4+
- ./gradlew clean -xtest -xlint :base:assembleRelease
5+
install:
6+
- ./gradlew :base:publishToMavenLocal

0 commit comments

Comments
 (0)