Skip to content

Commit

Permalink
Added maven central publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Oct 14, 2023
1 parent 0f7dbdc commit 59164fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use NoteBlockLib in your application, check out the [Usage](#usage) section.

## Releases
### Gradle/Maven
To use NoteBlockLib with Gradle/Maven you can use this [Maven server](https://maven.lenni0451.net/#/releases/net/raphimc/NoteBlockLib) or [Jitpack](https://jitpack.io/#RaphiMC/NoteBlockLib).
To use NoteBlockLib with Gradle/Maven you can get it from [Maven central](https://mvnrepository.com/artifact/net.raphimc/NoteBlockLib), [Lenni0451's maven](https://maven.lenni0451.net/#/releases/net/raphimc/NoteBlockLib) or [Jitpack](https://jitpack.io/#RaphiMC/NoteBlockLib).
You can also find instructions how to implement it into your build script there.

## Usage
Expand Down
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ publishing {
repositories {
maven {
name = "reposilite"
url = project.maven_version.endsWith("SNAPSHOT") ? "https://maven.lenni0451.net/snapshots" : "https://maven.lenni0451.net/releases"
url = "https://maven.lenni0451.net/" + (project.maven_version.endsWith("SNAPSHOT") ? "snapshots" : "releases")

credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
maven {
name = "ossrh"
url = "https://s01.oss.sonatype.org/" + (project.maven_version.endsWith("SNAPSHOT") ? "content/repositories/snapshots/" : "service/local/staging/deploy/maven2/")

credentials(PasswordCredentials)
authentication {
Expand Down

0 comments on commit 59164fe

Please sign in to comment.