Skip to content

Commit ad5633b

Browse files
Fix Maven Central Snapshot auth
1 parent b444bae commit ad5633b

9 files changed

Lines changed: 45 additions & 76 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Buttplug for Java is covered under the following BSD 3-Clause License
22

3-
Copyright (c) 2024, BlackSphereFollower
3+
Copyright (c) 2025, BlackSphereFollower
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,31 @@ on. Then you can scan for devices, iterate over them and send commands.
4545

4646
### Snapshots
4747

48-
Snapshot libraries from the buttplug4j repo are available via Maven from the following
49-
repository: https://s01.oss.sonatype.org/content/repositories/snapshots
50-
Releases will be available from maven central.
48+
Snapshot libraries from the buttplug4j repo are available via Maven from the Central Portal Snapshots
49+
repository: https://central.sonatype.com/repository/maven-snapshots
5150

51+
Releases will be available from Maven Central.
52+
53+
For Gradle:
54+
```groovy
55+
repositories {
56+
maven {
57+
name = 'Central Portal Snapshots'
58+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
59+
}
60+
}
61+
dependencies {
62+
implementation 'io.github.blackspherefollower:buttplug4j.connectors.jetty.websocket.client:3.1.+'
63+
}
64+
```
65+
66+
For Maven:
5267
```xml
5368
<repositories>
5469
<repository>
55-
<id>OSSRH</id>
56-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
70+
<name>Central Portal Snapshots</name>
71+
<id>central-portal-snapshots</id>
72+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
5773
<snapshots>
5874
<enabled>true</enabled>
5975
</snapshots>
@@ -63,7 +79,7 @@ Releases will be available from maven central.
6379
<dependency>
6480
<groupId>io.github.blackspherefollower</groupId>
6581
<artifactId>buttplug4j.connectors.jetty.websocket.client</artifactId>
66-
<version>[3.0-SNAPSHOT,)</version>
82+
<version>[3.1-SNAPSHOT,)</version>
6783
</dependency>
6884
</dependencies>
6985
```
@@ -79,7 +95,7 @@ write code for!
7995

8096
Buttplug for Java is BSD licensed.
8197

82-
Copyright (c) 2016-2024, BlackSphereFollower
98+
Copyright (c) 2016-2025, BlackSphereFollower
8399
All rights reserved.
84100

85101
Redistribution and use in source and binary forms, with or without

build.gradle

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1+
plugins {
2+
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
3+
}
4+
5+
group = 'io.github.blackspherefollower'
6+
version = "3.1." + ("${System.env.GITHUB_RUN_NUMBER ?: 1}") + ("${System.env.GITHUB_REF_TYPE}" == "tag" ? "" : "-SNAPSHOT")
7+
8+
nexusPublishing {
9+
repositories {
10+
sonatype {
11+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
12+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
13+
14+
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")
15+
password = project.findProperty("maven.pass") ?: System.getenv("MAVEN_PASS")
16+
}
17+
}
18+
}
19+
120
subprojects { project ->
2-
group = 'io.github.blackspherefollower'
3-
version = "3.1." + ("${System.env.GITHUB_RUN_NUMBER ?: 1}") + ("${System.env.GITHUB_REF_TYPE}" == "tag" ? "" : "-SNAPSHOT")
21+
group = this.group
22+
version = this.version
423
}

buttplug4j.connectors.javax.websocket.client/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,6 @@ publishing {
5858
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
5959
}
6060
}
61-
maven {
62-
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
66-
67-
credentials {
68-
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")
69-
password = project.findProperty("maven.pass") ?: System.getenv("MAVEN_PASS")
70-
}
71-
}
7261
}
7362
publications {
7463
mavenJava(MavenPublication) {

buttplug4j.connectors.javax.websocket.common/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,6 @@ publishing {
5555
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
5656
}
5757
}
58-
maven {
59-
name = "ossrh"
60-
url = version.contains("-SNAPSHOT") ?
61-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
62-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
63-
64-
credentials {
65-
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")
66-
password = project.findProperty("maven.pass") ?: System.getenv("MAVEN_PASS")
67-
}
68-
}
6958
}
7059
publications {
7160
mavenJava(MavenPublication) {

buttplug4j.connectors.javax.websocket.server/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,6 @@ publishing {
5858
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
5959
}
6060
}
61-
maven {
62-
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
66-
67-
credentials {
68-
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")
69-
password = project.findProperty("maven.pass") ?: System.getenv("MAVEN_PASS")
70-
}
71-
}
7261
}
7362
publications {
7463
mavenJava(MavenPublication) {

buttplug4j.connectors.jetty.websocket.client/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,6 @@ publishing {
5959
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
6060
}
6161
}
62-
maven {
63-
name = "ossrh"
64-
url = version.contains("-SNAPSHOT") ?
65-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
66-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
67-
68-
credentials {
69-
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")
70-
password = project.findProperty("maven.pass") ?: System.getenv("MAVEN_PASS")
71-
}
72-
}
7362
}
7463
publications {
7564
mavenJava(MavenPublication) {

buttplug4j.utils.mdns/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,6 @@ publishing {
5858
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
5959
}
6060
}
61-
maven {
62-
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
66-
67-
credentials {
68-
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")
69-
password = project.findProperty("maven.pass") ?: System.getenv("MAVEN_PASS")
70-
}
71-
}
7261
}
7362
publications {
7463
mavenJava(MavenPublication) {

buttplug4j/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,6 @@ publishing {
5858
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
5959
}
6060
}
61-
maven {
62-
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
66-
67-
credentials {
68-
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")
69-
password = project.findProperty("maven.pass") ?: System.getenv("MAVEN_PASS")
70-
}
71-
}
7261
}
7362
publications {
7463
mavenJava(MavenPublication) {

0 commit comments

Comments
 (0)