Skip to content

Commit 4e30aa6

Browse files
committed
Add publishing to githubpackages
1 parent 270e7a8 commit 4e30aa6

File tree

7 files changed

+118
-25
lines changed

7 files changed

+118
-25
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ tasks {
7171

7272
subprojects {
7373

74+
apply(plugin="maven-publish")
75+
7476
group = "dev.gitlive"
77+
version = "0.1.0-beta"
7578

7679
repositories {
7780
mavenLocal()

firebase-app/build.gradle.kts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ plugins {
66
id("com.android.library")
77
kotlin("multiplatform")
88
kotlin("native.cocoapods")
9-
`maven-publish`
109
}
10+
1111
repositories {
1212
mavenCentral()
1313
google()
1414
}
1515

16-
version = "0.1.0-beta"
17-
1816
android {
1917
compileSdkVersion(property("targetSdkVersion") as Int)
2018
defaultConfig {
@@ -82,3 +80,22 @@ kotlin {
8280
}
8381
}
8482
}
83+
84+
publishing {
85+
repositories {
86+
maven {
87+
name = "GitHubPackages"
88+
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
89+
credentials {
90+
username = project.property("gpr.user") as String
91+
password = project.property("gpr.key") as String
92+
}
93+
}
94+
}
95+
publications {
96+
register("gpr", MavenPublication::class) {
97+
from(components["kotlin"])
98+
}
99+
100+
}
101+
}

firebase-auth/build.gradle.kts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
21
plugins {
32
id("com.android.library")
43
kotlin("multiplatform")
54
kotlin("native.cocoapods")
6-
`maven-publish`
75
}
86

9-
version = "0.1.0-beta"
10-
117
android {
128
compileSdkVersion(property("targetSdkVersion") as Int)
139
defaultConfig {
@@ -74,3 +70,22 @@ kotlin {
7470
}
7571
}
7672
}
73+
74+
publishing {
75+
repositories {
76+
maven {
77+
name = "GitHubPackages"
78+
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
79+
credentials {
80+
username = project.property("gpr.user") as String
81+
password = project.property("gpr.key") as String
82+
}
83+
}
84+
}
85+
publications {
86+
register("gpr", MavenPublication::class) {
87+
from(components["kotlin"])
88+
}
89+
90+
}
91+
}

firebase-common/build.gradle.kts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ plugins {
88
kotlin("multiplatform")
99
kotlin("native.cocoapods")
1010
kotlin("plugin.serialization") version "1.3.70"
11-
`maven-publish`
1211
}
13-
repositories {
14-
mavenCentral()
15-
google()
16-
}
17-
version = "0.1.0-beta"
1812

1913
android {
2014
compileSdkVersion(property("targetSdkVersion") as Int)
@@ -88,3 +82,22 @@ kotlin {
8882
}
8983
}
9084
}
85+
86+
publishing {
87+
repositories {
88+
maven {
89+
name = "GitHubPackages"
90+
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
91+
credentials {
92+
username = project.property("gpr.user") as String
93+
password = project.property("gpr.key") as String
94+
}
95+
}
96+
}
97+
publications {
98+
register("gpr", MavenPublication::class) {
99+
from(components["kotlin"])
100+
}
101+
102+
}
103+
}

firebase-database/build.gradle.kts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
21
plugins {
32
id("com.android.library")
43
kotlin("multiplatform")
54
kotlin("native.cocoapods")
6-
`maven-publish`
75
}
86

9-
version = "0.1.0-beta"
10-
117
android {
128
compileSdkVersion(property("targetSdkVersion") as Int)
139
defaultConfig {
@@ -75,3 +71,22 @@ kotlin {
7571
}
7672
}
7773
}
74+
75+
publishing {
76+
repositories {
77+
maven {
78+
name = "GitHubPackages"
79+
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
80+
credentials {
81+
username = project.property("gpr.user") as String
82+
password = project.property("gpr.key") as String
83+
}
84+
}
85+
}
86+
publications {
87+
register("gpr", MavenPublication::class) {
88+
from(components["kotlin"])
89+
}
90+
91+
}
92+
}

firebase-firestore/build.gradle.kts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
21
plugins {
32
id("com.android.library")
43
kotlin("multiplatform")
54
kotlin("native.cocoapods")
6-
`maven-publish`
75
}
86

9-
version = "0.1.0-beta"
10-
117
android {
128
compileSdkVersion(property("targetSdkVersion") as Int)
139
defaultConfig {
@@ -76,3 +72,22 @@ kotlin {
7672
}
7773
}
7874
}
75+
76+
publishing {
77+
repositories {
78+
maven {
79+
name = "GitHubPackages"
80+
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
81+
credentials {
82+
username = project.property("gpr.user") as String
83+
password = project.property("gpr.key") as String
84+
}
85+
}
86+
}
87+
publications {
88+
register("gpr", MavenPublication::class) {
89+
from(components["kotlin"])
90+
}
91+
92+
}
93+
}

firebase-functions/build.gradle.kts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
21
plugins {
32
id("com.android.library")
43
kotlin("multiplatform")
54
kotlin("native.cocoapods")
6-
`maven-publish`
75
}
86

9-
version = "0.1.0-beta"
10-
117
android {
128
compileSdkVersion(property("targetSdkVersion") as Int)
139
defaultConfig {
@@ -75,3 +71,22 @@ kotlin {
7571
}
7672
}
7773
}
74+
75+
publishing {
76+
repositories {
77+
maven {
78+
name = "GitHubPackages"
79+
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
80+
credentials {
81+
username = project.property("gpr.user") as String
82+
password = project.property("gpr.key") as String
83+
}
84+
}
85+
}
86+
publications {
87+
register("gpr", MavenPublication::class) {
88+
from(components["kotlin"])
89+
}
90+
91+
}
92+
}

0 commit comments

Comments
 (0)