Skip to content

Commit

Permalink
Change publish location
Browse files Browse the repository at this point in the history
Signed-off-by: C0D3 M4513R <[email protected]>
  • Loading branch information
C0D3-M4513R committed Jul 23, 2024
1 parent 41f6f79 commit a287794
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ publishing {
pluginMaven(MavenPublication) {
// Automated publishing declares the java component for us

groupId = project.group
groupId = 'org.kettingpowered.patched.spongepowered'
version = project.version
artifactId = project.archivesBaseName

Expand Down Expand Up @@ -124,33 +124,21 @@ publishing {
}
}
repositories {
if (buildType == 'RELEASE') {
if (project.hasProperty("releaseRepo")) {
maven {
credentials {
username = project.releaseRepoUsername
password = project.releaseRepoPassword
}
url project.releaseRepo
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kettingpowered/Ketting-1-20-x")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
if (project.hasProperty("spongeReleaseRepo")) {
maven {
credentials {
username = project.spongeUsername
password = project.spongePassword
}
url project.spongeReleaseRepo
}
}
} else if (project.hasProperty("spongeSnapshotRepo")) {
maven {
credentials {
username = project.spongeUsername
password = project.spongePassword
}
url project.spongeSnapshotRepo
}
maven {
name = 'kettingRepo'
credentials {
username = System.getenv("KETTINGUSERNAME")
password = System.getenv("KETTINGPASSWORD")
}
url = "https://reposilite.c0d3m4513r.com/Ketting/"
}
}
}

0 comments on commit a287794

Please sign in to comment.