Separate gradle project for JavaScript views -
i'm using spring-boot , want have separate gradle project angularjs views.
webapp contains *.js
, *.html
in src/main/webapp
after gradle war
have in webapp.war
every js/html want in controller.war
have java classes, no js/html.
my uber build.gradle:
subprojects { apply plugin: "java" repositories { mavenlocal() mavencentral() } } project("controller") { apply plugin: "spring-boot" apply plugin: "war" dependencies { compile project(":persistence") compile project(":webapp") compile "org.springframework.boot:spring-boot-starter-web:1.0.1.release" } } project("persistence") { apply plugin: "java" dependencies { compile "org.springframework.boot:spring-boot-starter-data-jpa:1.0.1.release" } } project("webapp") { apply plugin: "war" }
why compile project(":webapp")
doesn't include js/html files , how can fix this?
Comments
Post a Comment