Add space deploy
This commit is contained in:
parent
3c65448c74
commit
1993896f77
18
.space.kts
Normal file
18
.space.kts
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
@ -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("")
|
||||
}
|
Loading…
Reference in New Issue
Block a user