11apply plugin : ' com.android.library'
22apply plugin : ' kotlin-android'
3- apply plugin : ' maven-publish'
43apply plugin : ' kotlin-android-extensions'
54apply plugin : ' kotlin-kapt'
65
7- def githubProperties = new Properties ()
8- githubProperties. load(new FileInputStream (rootProject. file(" github.properties" )))
9-
106def getVersionName = { ->
117 return " 1.3.4" // Replace with version Name
128}
@@ -15,36 +11,6 @@ def getArtificatId = { ->
1511 return " ketro" // Replace with library name ID
1612}
1713
18- publishing {
19- publications {
20- bar(MavenPublication ) {
21- groupId ' past3.smilecs.ketro' // Replace with group ID
22- artifactId getArtificatId()
23- version getVersionName()
24- artifact(" $buildDir /outputs/aar/${ getArtificatId()} -release.aar" )
25- }
26- }
27-
28- repositories {
29- maven {
30- name = " GitHubPackages"
31- /* * Configure path of your package repository on Github
32- ** Replace GITHUB_USERID with your/organisation Github userID
33- ** and REPOSITORY with the repository name on GitHub
34- */
35- url = uri(" https://maven.pkg.github.com/smilecs/ketro" )
36- credentials {
37- /* * Create github.properties in root project folder file with
38- ** gpr.usr=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN
39- ** Set env variable GPR_USER & GPR_API_KEY if not adding a properties file**/
40-
41- username = githubProperties[' gpr.usr' ] ?: System . getenv(" GPR_USER" )
42- password = githubProperties[' gpr.key' ] ?: System . getenv(" GPR_API_KEY" )
43- }
44- }
45- }
46- }
47-
4814android {
4915 compileSdkVersion 31
5016
0 commit comments