Merge pull request #2 from fboldog/gradle-fatjar

Create prog8compiler.jar with fatjar like jar process
This commit is contained in:
Irmen de Jong 2019-01-31 21:15:23 +01:00 committed by GitHub
commit 255c808b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

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

View File

@ -55,3 +55,14 @@ applicationDistribution.into("bin") {
from(p8vmScript)
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)