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

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

5
.gitignore vendored
View File

@@ -42,4 +42,7 @@ bin/
.vscode/ .vscode/
### Mac OS ### ### Mac OS ###
.DS_Store .DS_Store
### Файл окружения
.env

View File

@@ -1,5 +1,6 @@
plugins { plugins {
kotlin("jvm") version "2.3.21" kotlin("jvm") version "2.3.21"
`maven-publish`
} }
group = "ru.thiflict" group = "ru.thiflict"
@@ -19,4 +20,29 @@ kotlin {
tasks.test { tasks.test {
useJUnitPlatform() 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")
}
}
}
} }