maven publish

This commit is contained in:
creeper123123321 2021-02-19 08:34:18 -03:00 committed by GitHub
parent 3152b2425e
commit c088c4028f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ plugins {
id("com.palantir.git-version") version "0.12.3"
application
kotlin("jvm") version "1.4.30"
id("maven-publish")
}
application {
@ -90,5 +91,17 @@ tasks.named<ProcessResources>("processResources") {
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = "11"
publishing {
publications {
create<MavenPublication>("maven") {
artifact(tasks.getByName("shadowJar")) {
builtBy(tasks.getByName("shadowJar"))
}
}
}
repositories {
// mavenLocal()
}
}