diff --git a/.gitignore b/.gitignore index b1dff0d..8aa18bf 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,7 @@ bin/ .vscode/ ### Mac OS ### -.DS_Store \ No newline at end of file +.DS_Store + +### Файл окружения +.env \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 6fe6ea4..80f8762 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,6 @@ plugins { kotlin("jvm") version "2.3.21" + `maven-publish` } group = "ru.thiflict" @@ -19,4 +20,29 @@ kotlin { tasks.test { useJUnitPlatform() +} + +publishing { + publications { + create("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("basic") + } + } + } } \ No newline at end of file