diff --git a/README.md b/README.md index 90ae365e..f356513e 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ A Java Version 11 Runtime is only required if you want to use the Java 11 HttpCl ## Artifact coordinates The build produces the jar, sources and javadoc artifacts. They are available at -[Maven Central Repository](https://search.maven.org/artifact/de.gmuth/ipp-client). +[maven central repository](https://central.sonatype.com/namespace/de.gmuth). - group: gmuth.de - artifact: ipp-client diff --git a/build.gradle.kts b/build.gradle.kts index 2882e72d..552cf03c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -74,9 +74,7 @@ publishing { repositories { if (repo == "github") { // Github Packages: - // do NOT publish from your developer host! - // to release: 1. remove SNAPSHOT from version; 2. commit & push; 3. check github workflow results - // if the workflow tries to publish the same release again you'll get: "Received status code 409 from server: Conflict" + // gradlew -Drepo=github publish println("> maven repo github") maven { name = "GitHubPackages" // Must match regex [A-Za-z0-9_\-.]+. diff --git a/publishToSonatype b/publishToSonatype new file mode 100755 index 00000000..8ea84f63 --- /dev/null +++ b/publishToSonatype @@ -0,0 +1 @@ +gradlew -Drepo=sonatype publish