Add space deploy

This commit is contained in:
Alexander Nozik 2023-06-20 18:07:29 +03:00
parent 3c65448c74
commit 1993896f77
2 changed files with 26 additions and 2 deletions

18
.space.kts Normal file
View File

@ -0,0 +1,18 @@
job("deployFatJar") {
startOn {
gitPush {
anyBranchMatching {
+"main"
}
}
}
container("gradle:8.1.1-jdk11") {
kotlinScript { api ->
api.gradle("shadowJar")
}
fileArtifacts {
localPath = "build/libs/space-document-extractor.jar"
remotePath = "tools/space-document-extractor.jar"
}
}
}

View File

@ -1,3 +1,4 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
@ -26,10 +27,15 @@ tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
kotlin {
jvmToolchain(11)
}
application {
mainClass.set("ru.mipt.npm.space.documentextractor.MainKt")
}
tasks.withType<ShadowJar>{
archiveClassifier.set("")
archiveVersion.set("")
}