Add publishing to local m2 repository

This commit is contained in:
kashiuno 2025-01-02 21:55:31 +03:00
parent 26a6f065da
commit 91ef88d8c9
2 changed files with 11 additions and 0 deletions

1
.idea/gradle.xml generated
View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>

View File

@ -1,6 +1,7 @@
plugins {
kotlin("jvm") version "2.0.21"
id("org.openapi.generator") version "7.10.0"
id("maven-publish")
}
group = "ru.vyatsu"
@ -43,4 +44,13 @@ sourceSets {
tasks.compileKotlin {
dependsOn(tasks.openApiGenerate)
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["kotlin"])
artifactId = tasks.jar.get().archiveBaseName.get()
}
}
}