This commit is contained in:
+18
-5
@@ -3,6 +3,10 @@ plugins {
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
if (System.getenv("VERSION")) {
|
||||
project.mod_version = System.getenv("VERSION")
|
||||
}
|
||||
|
||||
version = "${project.mod_version}-${project.minecraft_version}"
|
||||
group = project.maven_group
|
||||
|
||||
@@ -111,12 +115,21 @@ publishing {
|
||||
|
||||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
||||
repositories {
|
||||
// Add repositories to publish to here.
|
||||
// Notice: This block does NOT have the same function as the block in the top level.
|
||||
// The repositories here will be used for publishing your artifact, not for
|
||||
// retrieving dependencies.
|
||||
maven {
|
||||
name = "personal"
|
||||
url = "https://maven.bigduckie.dev/releases"
|
||||
credentials {
|
||||
username = System.getenv("MAVEN_USERNAME")
|
||||
password = System.getenv("MAVEN_PASSWORD")
|
||||
name = "Gitea"
|
||||
url = uri("https://git.bigduckie.dev/api/packages/big-duckie/maven")
|
||||
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Authorization"
|
||||
value = "token ${System.getenv("MAVEN_TOKEN")}"
|
||||
}
|
||||
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user