Skip to content

Commit 7c69575

Browse files
smilecssmile
andauthored
Workflow (#48)
* remove jcenter * fix ketro build file for github packages deployment * update to kmapper * remove maven plugin Co-authored-by: smile <[email protected]>
1 parent bd5338e commit 7c69575

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

ketro/build.gradle

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'maven-publish'
43
apply plugin: 'kotlin-android-extensions'
54
apply plugin: 'kotlin-kapt'
65

7-
def githubProperties = new Properties()
8-
githubProperties.load(new FileInputStream(rootProject.file("github.properties")))
9-
106
def 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-
4814
android {
4915
compileSdkVersion 31
5016

0 commit comments

Comments
 (0)