blob: 92463ae95adf9cccfaf3805c1593a20303c72e7c [file]
plugins {
id "com.gradleup.shadow" version "9.3.0"
}
apply plugin: 'java'
apply plugin: 'application'
application {
mainClass = 'test.App'
}
run {
jvmArgs '-Dtest.foo=bar', '-Dtest.bar=foo'
}
task testJar(type: Jar) {
archiveClassifier = 'tests'
from sourceSets.test.output
}
task testSourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'test-sources'
from sourceSets.test.allSource
}
test.dependsOn testJar
build.dependsOn testSourcesJar