Подготовка репозитория к выкладыванию пакета

This commit is contained in:
2026-06-09 22:59:45 +05:00
parent 50a9b239cb
commit 216f3738dc
2 changed files with 30 additions and 1 deletions

3
.gitignore vendored
View File

@@ -43,3 +43,6 @@ bin/
### Mac OS ###
.DS_Store
### Файл окружения
.env

View File

@@ -1,5 +1,6 @@
plugins {
kotlin("jvm") version "2.3.21"
`maven-publish`
}
group = "ru.thiflict"
@@ -20,3 +21,28 @@ kotlin {
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "ru.thiflict"
artifactId = "binary-utils"
version = "1.0.0"
from(components["java"])
}
}
repositories {
maven {
name = "Gitea"
url = uri("https://git.ds1.thiflict.ru/api/packages/thiflict/maven")
credentials {
username = System.getenv("GITEA_USERNAME")
password = System.getenv("GITEA_PASSWORD")
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
}