diff --git a/pom.xml b/pom.xml index e0477cb62..2455acec5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ 4.0.0 org.springframework.samples springboot-petclinic - 1.4.1 + 1.4.2 org.springframework.boot spring-boot-starter-parent - 1.4.1.RELEASE + 1.4.2.RELEASE petclinic @@ -25,6 +25,7 @@ 3.3.6 1.11.4 2.2.4 + 1.8.0 3.0.2.RELEASE 2.0.4 @@ -169,78 +170,31 @@ - - org.apache.maven.plugins - maven-dependency-plugin + ro.isdc.wro4j + wro4j-maven-plugin + ${wro4j.version} - unpack - process-resources + generate-resources - unpack + run - - - - org.webjars - bootstrap - ${webjars-bootstrap.version} - false - ${project.basedir}/target/less - - **/*.less - - - - - - - maven-resources-plugin - - - copy-resources - validate - - copy-resources - - - ${project.build.directory}/less - - - src/main/less - true - - - - - - - - - org.lesscss - lesscss-maven-plugin - 1.7.0.1.1 - ${project.build.directory}/less - ${project.build.directory}/classes/static/resources/css - true - - petclinic.less - + ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory + ${project.build.directory}/classes/static/resources/css + ${basedir}/src/main/wro/wro.xml + ${basedir}/src/main/wro/wro.properties + ${basedir}/src/main/less - - - process-resources - - compile - - - + + + org.webjars + bootstrap + ${webjars-bootstrap.version} + + diff --git a/src/main/less/petclinic.less b/src/main/less/petclinic.less index 7364d2a37..32d15a5f2 100644 --- a/src/main/less/petclinic.less +++ b/src/main/less/petclinic.less @@ -11,8 +11,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@import "META-INF/resources/webjars/bootstrap/3.3.6/less/bootstrap.less"; - @icon-font-path: "../../webjars/bootstrap/fonts/"; @spring-green: #6db33f; diff --git a/src/main/wro/wro.properties b/src/main/wro/wro.properties new file mode 100644 index 000000000..bd6f3a814 --- /dev/null +++ b/src/main/wro/wro.properties @@ -0,0 +1,4 @@ +#List of preProcessors +preProcessors=lessCssImport +#List of postProcessors +postProcessors=less4j \ No newline at end of file diff --git a/src/main/wro/wro.xml b/src/main/wro/wro.xml new file mode 100644 index 000000000..590156d7e --- /dev/null +++ b/src/main/wro/wro.xml @@ -0,0 +1,6 @@ + + + classpath:META-INF/resources/webjars/bootstrap/3.3.6/less/bootstrap.less + /petclinic.less + +