I have a subproject which is a war. Below is my project structure
Root project ‘master-project’
— project ‘:sub-project’
sub-project is runnning fine. I would like to run this sub-project from my master-project and it should behave like it is main project which is running. I am using eclipse. Please can you suggest if that is possible.
build.gradle
allprojects {
group = "in.ng"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
}
project(’:sub-project’) {
apply plugin: "java"
apply plugin: "eclipse-wtp"
apply plugin: "war"
dependencies {
providedCompile group: ‘javax.servlet’, name: ‘javax.servlet-api’, version: ‘3.1.0’
}
jar {
manifest {
attributes( “Implementation-Title”: “Gradle”,
“Implementation-Version”: version)
}
}
}