Added multi release attribute

This commit is contained in:
kuroppoi 2021-04-21 19:49:58 +02:00
parent 3c5ad3e85c
commit 952b7eccee

View file

@ -17,7 +17,7 @@ application {
} }
run { run {
workingDir = project.ext.runDir workingDir = project.ext.runDir
} }
@ -26,7 +26,8 @@ jar {
archiveBaseName = 'brainwine' archiveBaseName = 'brainwine'
manifest { manifest {
attributes 'Main-Class': project.ext.mainClass attributes 'Main-Class': project.ext.mainClass,
'Multi-Release': 'true'
} }
from { from {
@ -36,7 +37,7 @@ jar {
task copyJar(type: Copy) { task copyJar(type: Copy) {
from jar from jar
into project.ext.outputDir into project.ext.outputDir
} }
jar.finalizedBy copyJar jar.finalizedBy copyJar