Publish on github

This commit is contained in:
Christian Torbidone 2024-08-31 19:09:54 +02:00
parent dce407c683
commit dd17b1c93d

View file

@ -7,7 +7,7 @@ group = "org.thundernetwork"
version = "1.0.2" version = "1.0.2"
repositories { repositories {
maven("https://repository.thundernetwork.org/repository/maven-public") maven("https://repository.thundernetwork.org/repository/maven-central/")
} }
kotlin { kotlin {
@ -34,16 +34,21 @@ tasks.jar {
} }
} }
publishing {
repositories {
publishing { publishing {
repositories { repositories {
maven { maven {
url = uri("https://repository.thundernetwork.org/repository/maven-releases") name = "GitHub"
url = uri("https://maven.pkg.github.com/ThunderNetworkRaD/permission-checker")
credentials { credentials {
username = System.getenv("REPOSITORY_USERNAME") username = System.getenv("REPOSITORY_USERNAME")
password = System.getenv("REPOSITORY_PASSWORD") password = System.getenv("REPOSITORY_PASSWORD")
} }
} }
} }
}
}
publications { publications {
create<MavenPublication>("mavenJava") { create<MavenPublication>("mavenJava") {
from(components["java"]) from(components["java"])