Skip to content
Snippets Groups Projects
Commit 15c43dec authored by anttil's avatar anttil
Browse files

SWE-22 / SSDM-16: remove task.execute() from source jar generation

SVN: 31251
parent f109d942
No related branches found
No related tags found
No related merge requests found
......@@ -192,27 +192,19 @@ task testJar(type: Jar, dependsOn: testClasses) {
from sourceSets.test.output
}
jar {
doLast {
tasks.sourcesJar.execute()
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
doLast {
tasks.sourceJarForEclipseLaunchConfigs.execute()
}
}
task sourceJarForEclipseLaunchConfigs(type: Copy) {
task sourceJarForEclipseLaunchConfigs(type: Copy, dependsOn: sourcesJar) {
into sourcesJar.destinationDir
from sourcesJar.archivePath
rename '.*', 'sources.jar'
}
jar.dependsOn sourceJarForEclipseLaunchConfigs
artifacts {
tests testJar
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment