Create prog8compiler.jar with fatjar like jar process

This commit is contained in:
Ferenc Boldog 2019-01-30 22:39:43 +01:00
parent d35d28ac5a
commit 5c8d7c1255
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ compiler/src/compiled_java
.gradle .gradle
build/ build/
/prog8compiler.jar

View File

@ -55,3 +55,14 @@ applicationDistribution.into("bin") {
from(p8vmScript) from(p8vmScript)
fileMode = 0755 fileMode = 0755
} }
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'prog8.CompilerMainKt'
}
archiveBaseName = 'prog8compiler'
destinationDir = rootProject.projectDir
from { project.configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
build.finalizedBy(fatJar)