mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-04 09:30:00 +01:00
maven publish
This commit is contained in:
parent
3152b2425e
commit
c088c4028f
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user