build: добавлены инструкции для публикации Maven
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -31,4 +31,21 @@ publishing {
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "Di9"
|
||||
url = uri("https://di9.ru/git/api/packages/Voomra/maven")
|
||||
def giteaToken = System.getenv("GITEA_TOKEN")
|
||||
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Authorization"
|
||||
value = "token ${giteaToken}"
|
||||
}
|
||||
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user