File tree Expand file tree Collapse file tree 7 files changed +57
-104
lines changed Expand file tree Collapse file tree 7 files changed +57
-104
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ tasks {
71
71
72
72
subprojects {
73
73
74
- apply (plugin= " maven-publish" )
75
74
76
75
group = " dev.gitlive"
77
76
version = " 0.1.0-beta"
@@ -173,5 +172,44 @@ subprojects {
173
172
}
174
173
}
175
174
175
+ apply (plugin= " maven-publish" )
176
+ apply (plugin= " signing" )
177
+
178
+ configure<PublishingExtension > {
179
+
180
+ repositories {
181
+ maven {
182
+ url = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2" )
183
+ credentials {
184
+ username = project.property(" sonatypeUsername" ) as String
185
+ password = project.property(" sonatypePassword" ) as String
186
+ }
187
+ }
188
+ }
189
+
190
+ publications.all {
191
+ this as MavenPublication
192
+
193
+ pom {
194
+
195
+ url.set(" https://github.com/GitLiveApp/firebase-kotlin-sdk" )
196
+
197
+ scm {
198
+ url.set(" https://github.com/GitLiveApp/firebase-kotlin-sdk" )
199
+ connection.set(" scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git" )
200
+ developerConnection.set(" scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git" )
201
+ tag.set(" HEAD" )
202
+ }
203
+
204
+ issueManagement {
205
+ system.set(" GitHub Issues" )
206
+ url.set(" https://github.com/GitLiveApp/firebase-kotlin-sdk/issues" )
207
+ }
208
+
209
+ }
210
+
211
+ }
212
+
213
+ }
176
214
}
177
215
Original file line number Diff line number Diff line change @@ -81,21 +81,7 @@ kotlin {
81
81
}
82
82
}
83
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
- }
84
+ configure<SigningExtension > {
85
+ sign(publishing.publications)
86
+ }
99
87
100
- }
101
- }
Original file line number Diff line number Diff line change @@ -71,21 +71,6 @@ kotlin {
71
71
}
72
72
}
73
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
- }
74
+ configure<SigningExtension > {
75
+ sign(publishing.publications)
76
+ }
Original file line number Diff line number Diff line change @@ -83,21 +83,7 @@ kotlin {
83
83
}
84
84
}
85
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
- }
86
+ configure<SigningExtension > {
87
+ sign(publishing.publications)
88
+ }
101
89
102
- }
103
- }
Original file line number Diff line number Diff line change @@ -72,21 +72,7 @@ kotlin {
72
72
}
73
73
}
74
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
- }
75
+ configure<SigningExtension > {
76
+ sign(publishing.publications)
92
77
}
78
+
Original file line number Diff line number Diff line change @@ -73,21 +73,7 @@ kotlin {
73
73
}
74
74
}
75
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
- }
76
+ configure<SigningExtension > {
77
+ sign(publishing.publications)
78
+ }
91
79
92
- }
93
- }
Original file line number Diff line number Diff line change @@ -72,21 +72,7 @@ kotlin {
72
72
}
73
73
}
74
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
- }
75
+ configure<SigningExtension > {
76
+ sign(publishing.publications)
77
+ }
90
78
91
- }
92
- }
You can’t perform that action at this time.
0 commit comments