mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
Merge pull request #2 from fboldog/gradle-fatjar
Create prog8compiler.jar with fatjar like jar process
This commit is contained in:
commit
255c808b16
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,3 +31,4 @@ compiler/src/compiled_java
|
||||
|
||||
.gradle
|
||||
build/
|
||||
/prog8compiler.jar
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user