Skip to content
Permalink
Browse files

4 - Configure publishing properties

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
  • Loading branch information
msfjarvis committed Nov 21, 2019
1 parent 7cc6fcd commit cee74a5e0b3b76d1d7a2d4eb9636d80fb1db49d6
Showing with 8 additions and 0 deletions.
  1. +4 −0 gradle.properties
  2. +4 −0 library/build.gradle
@@ -19,3 +19,7 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Publishing config
GROUP=msfjarvis
VERSION=0.1.0-SNAPSHOT
@@ -43,6 +43,10 @@ publishing {
publications {
gpr(MavenPublication) {
from(components.android)
groupId "$GROUP"
artifactId "deployment-sample-library"
// Use your configured version outside CI, the SHA of the top commit inside.
version System.env['GITHUB_SHA'] == null ? "$VERSION" : System.env['GITHUB_SHA']
}
}
}

0 comments on commit cee74a5

Please sign in to comment.
You can’t perform that action at this time.