Skip to content
Snippets Groups Projects
Commit 20805568 authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

delete poms on clean

parent 31fe97dc
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,9 @@ apply plugin: 'base' ...@@ -51,6 +51,9 @@ apply plugin: 'base'
</project> </project>
"""} """}
subprojects { subprojects {
apply plugin: 'base' apply plugin: 'base'
...@@ -67,16 +70,22 @@ subprojects { ...@@ -67,16 +70,22 @@ subprojects {
* Bundle-Version Number * Bundle-Version Number
*/ */
} }
task deleteArtifacts(type: Delete) {
delete 'target','pom.xml'
}
} }
task deploy(dependsOn: subprojects.deploy) task deploy(dependsOn: subprojects.deploy)
task install(dependsOn: deploy , type:Exec) { task install(dependsOn: deploy , type:Exec) {
description = "\tExecutes a 'mvn install' of the parent pom.xml and auto-generates Tycho Poms" description = "\tExecutes a 'mvn install' of the parent pom.xml and auto-generates Tycho Poms"
commandLine 'mvn', 'install', '-f', 'de.prob.parent/pom.xml' commandLine 'mvn', 'install', '-f', 'de.prob.parent/pom.xml'
}
clean {
dependsOn += subprojects.deleteArtifacts
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment