build: добавлены инструкции публикации Maven
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -38,4 +38,21 @@ publishing {
|
|||||||
from components.java
|
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