Skip to content

Commit 2e49de3

Browse files
authored
Fix ossrh deployment sunset, publish to mavencentral (#84)
1 parent d1cf674 commit 2e49de3

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--suppress HtmlDeprecatedAttribute -->
22
<div align="center">
33

4-
![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/it.vercruysse.lemmyapi/lemmy-api?server=https%3A%2F%2Fs01.oss.sonatype.org)
4+
![MavenCentral (Snapshots)](https://img.shields.io/maven-central/v/it.vercruysse.lemmyapi/lemmy-api)
55
![badge][badge-js]
66
![badge][badge-jvm]
77
![badge][badge-android]
@@ -45,11 +45,6 @@ implementation("it.vercruysse.lemmyapi:lemmy-api:VERSION")
4545
```
4646
It is currently in beta, so only snapshots are available.
4747

48-
Add the following repository
49-
```kts
50-
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots") }
51-
```
52-
5348
## Goals
5449

5550
The intention is to provide an easy-to-use API that supports a wide range of Lemmy instances.

app/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2-
import com.vanniktech.maven.publish.SonatypeHost
32
import org.jmailen.gradle.kotlinter.tasks.FormatTask
43
import org.jmailen.gradle.kotlinter.tasks.LintTask
54

@@ -8,7 +7,7 @@ plugins {
87
kotlin("plugin.serialization") version "2.1.10"
98
id("org.jmailen.kotlinter") version "5.0.1"
109
id("com.google.devtools.ksp") version ("2.1.10-1.0.30")
11-
id("com.vanniktech.maven.publish") version "0.29.0"
10+
id("com.vanniktech.maven.publish") version "0.33.0"
1211
id("com.github.ben-manes.versions") version "0.51.0"
1312
id("com.android.library")
1413
id("kotlin-parcelize")
@@ -176,7 +175,7 @@ fun getHostOsName(): OS =
176175
}
177176

178177
mavenPublishing {
179-
publishToMavenCentral(SonatypeHost.S01, true)
178+
publishToMavenCentral( true)
180179
signAllPublications()
181180
}
182181

0 commit comments

Comments
 (0)