Skip to content

Commit 6e938fe

Browse files
committed
Drop nexus publishing plugin
Maven Central recently deprecated the Sonatype-style publishing, which means the nexus publishing gradle plugin we used didn't work anymore. As Maven Central has yet to release a replacement plugin for gradle, we simply drop nexus publishing support here and manually upload the archives in the meantime, which is simple enough. We also drop the publishing CI jobs that originally aimed to automate publishing to Maven Central, which we however never came around to use since we didn't want to fully trust Github CI with publishing binaries for us.
1 parent 80a5abc commit 6e938fe

File tree

4 files changed

+2
-168
lines changed

4 files changed

+2
-168
lines changed

.github/workflows/publish-android.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/publish-jvm.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,18 @@
11
buildscript {
22
repositories {
33
google()
4+
mavenCentral()
45
}
56
dependencies {
67
classpath("com.android.tools.build:gradle:7.1.2")
78
}
89
}
910

1011
plugins {
11-
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
1212
}
1313

1414
// library version is defined in gradle.properties
1515
val libraryVersion: String by project
1616

17-
// These properties are required here so that the nexus publish-plugin
18-
// finds a staging profile with the correct group (group is otherwise set as "")
19-
// and knows whether to publish to a SNAPSHOT repository or not
20-
// https://github.com/gradle-nexus/publish-plugin#applying-the-plugin
2117
group = "org.lightningdevkit"
2218
version = libraryVersion
23-
24-
nexusPublishing {
25-
repositories {
26-
create("sonatype") {
27-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
28-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
29-
30-
val ossrhUsername: String? by project
31-
val ossrhPassword: String? by project
32-
username.set(ossrhUsername)
33-
password.set(ossrhPassword)
34-
}
35-
}
36-
}
Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,17 @@
11
buildscript {
22
repositories {
33
google()
4+
mavenCentral()
45
}
56
dependencies {
6-
classpath("com.android.tools.build:gradle:7.1.2")
77
}
88
}
99

1010
plugins {
11-
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
1211
}
1312

1413
// library version is defined in gradle.properties
1514
val libraryVersion: String by project
1615

17-
// These properties are required here so that the nexus publish-plugin
18-
// finds a staging profile with the correct group (group is otherwise set as "")
19-
// and knows whether to publish to a SNAPSHOT repository or not
20-
// https://github.com/gradle-nexus/publish-plugin#applying-the-plugin
2116
group = "org.lightningdevkit"
2217
version = libraryVersion
23-
24-
nexusPublishing {
25-
repositories {
26-
create("sonatype") {
27-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
28-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
29-
30-
val ossrhUsername: String? by project
31-
val ossrhPassword: String? by project
32-
username.set(ossrhUsername)
33-
password.set(ossrhPassword)
34-
}
35-
}
36-
}

0 commit comments

Comments
 (0)