Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 2 additions & 24 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,31 +66,9 @@ The SECG secp256K1 curve was removed from Java in the JDK 16 release (see https:

== Experimental Pre-Release binaries

Binary packages are available on https://gitlab.com/groups/bitcoinj/-/packages[GitLab.com]. You can download JARs or use the provided Maven coordinates to link to them directly from your `pom.xml` or `build.gradle`.
Binary packages are available on https://central.sonatype.com[Maven Central]. You can download JARs or use the provided Maven coordinates to link to them directly from your `pom.xml` or `build.gradle`.

WARNING:: This is an experimental pre-release and should be used only for testing and evaluation only.

=== Add the GitLab Maven Package Repository

To your `pom.xml`:

[source,xml]
----
<repositories>
<repository>
<id>secpjdk-repo</id>
<url>https://gitlab.com/api/v4/projects/55956336/packages/maven</url>
</repository>
</repositories>
----

Or to your `build.gradle`:

----
maven {
url 'https://gitlab.com/api/v4/projects/55956336/packages/maven'
}
----
WARNING:: This is an experimental pre-release and should be used for testing and evaluation only.

=== Add Your Module Dependencies

Expand Down
19 changes: 13 additions & 6 deletions jreleaser.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ owner = "bitcoinj"
name = "secp256k1-jdk"
enabled = false

# Validate with Maven Central Rules and Deploy to our GitLab Maven Repo
[deploy.maven.gitlab.secp256k1-jdk]
[signing]
active = "ALWAYS"
projectIdentifier = 55956336
url = "https://gitlab.com/api/v4/projects/55956336/packages/maven"

[signing.pgp]
armored = true
mode = "COMMAND"

[signing.pgp.command]
executable = "gpg"
defaultKeyring = true

[deploy.maven.mavenCentral.sonatype]
active = "ALWAYS"
url = "https://central.sonatype.com/api/v1/publisher"
applyMavenCentralRules = true
sign = false
snapshotSupported = false
stagingRepositories = ["target/repo-signed"]
3 changes: 2 additions & 1 deletion scripts/maven-publish-release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh
# Validate and publish release artifacts to our GitLab Maven artifact rpo
# This should be run from the project root directory and inside the `nix develop` shell
# JRELEASER_GITLAB_TOKEN should be set before running
# `JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME` and `JRELEASER_DEPLOY_MAVEN_MAVENCENTRAL_PASSWORD`
# should be set before running
if [[ $1 != "--dry-run" && $1 != "" ]]; then
echo "Usage: $0 [--dry-run]"
exit 1
Expand Down
Loading