added Jenkinsfile

This commit is contained in:
2021-10-30 17:22:04 +02:00
parent 5aea49219f
commit 7f8557541a
5 changed files with 53 additions and 15 deletions

View File

@@ -7,8 +7,16 @@ plugins {
ext.setProperty("jpms.module.name", "net.woggioni.envelope")
configurations {
embedded
embedded {
visible = false
canBeConsumed = false
}
compileOnly.extendsFrom(embedded)
tar {
visible = true
canBeConsumed = true
transitive = false
}
}
dependencies {
@@ -38,7 +46,7 @@ jar {
}
}
tasks.register("tar", Tar) {
Provider<Tar> tarTaskProvider = tasks.register("tar", Tar) {
archiveFileName = "${project.name}.tar"
from(project.tasks.named(JavaPlugin.JAR_TASK_NAME)
.flatMap(Jar.&getArchiveFile)
@@ -60,3 +68,7 @@ tasks.named(JavaPlugin.COMPILE_JAVA_TASK_NAME, JavaCompile) {
options.compilerArgs.addAll(["--patch-module", "net.woggioni.envelope=$path"])
}
}
artifacts {
tar tarTaskProvider
}