| apply plugin: 'java' | |
| apply plugin: 'application' | |
| mainClassName = 'test.App' | |
| run { | |
| jvmArgs '-Dtest.foo=bar', '-Dtest.bar=foo' | |
| } | |
| task testJar(type: Jar) { | |
| classifier = 'tests' | |
| from sourceSets.test.output | |
| } | |
| task testSourcesJar(type: Jar, dependsOn: classes) { | |
| classifier = 'test-sources' | |
| from sourceSets.test.allSource | |
| } | |
| test.dependsOn testJar | |
| build.dependsOn testSourcesJar |