mirror of
https://github.com/irmen/prog8.git
synced 2024-12-23 09:32:43 +00:00
Create prog8compiler.jar with fatjar like jar process
This commit is contained in:
parent
d35d28ac5a
commit
5c8d7c1255
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,3 +31,4 @@ compiler/src/compiled_java
|
|||||||
|
|
||||||
.gradle
|
.gradle
|
||||||
build/
|
build/
|
||||||
|
/prog8compiler.jar
|
||||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user