|
15 | 15 | </parent>
|
16 | 16 |
|
17 | 17 | <properties>
|
18 |
| - <!-- Any bootstrap version upgrade must be reported in the wro4j.xml file --> |
19 |
| - <webjars-bootstrap.version>3.4.0</webjars-bootstrap.version> |
20 |
| - <webjars-jquery.version>3.6.0</webjars-jquery.version> |
21 |
| - <webjars-angular.version>1.8.2</webjars-angular.version> |
22 |
| - <webjars-angular-ui-router.version>1.0.20</webjars-angular-ui-router.version> |
23 |
| - <wro4j.version>1.8.0</wro4j.version> |
| 18 | + <webjars-bootstrap.version>5.3.3</webjars-bootstrap.version> |
| 19 | + <webjars-font-awesome.version>4.7.0</webjars-font-awesome.version> |
| 20 | + <webjars-angular.version>1.8.3</webjars-angular.version> |
| 21 | + <webjars-angular-ui-router.version>1.0.30</webjars-angular-ui-router.version> |
| 22 | + <libsass-maven-plugin.version>0.2.29</libsass-maven-plugin.version> |
24 | 23 | <docker.image.exposed.port>8081</docker.image.exposed.port>
|
25 | 24 | <docker.image.dockerfile.dir>${basedir}/../docker</docker.image.dockerfile.dir>
|
26 | 25 | </properties>
|
|
107 | 106 | <version>${webjars-angular.version}</version>
|
108 | 107 | </dependency>
|
109 | 108 | <dependency>
|
110 |
| - <groupId>org.webjars</groupId> |
111 |
| - <artifactId>jquery</artifactId> |
112 |
| - <version>${webjars-jquery.version}</version> |
| 109 | + <groupId>org.webjars.npm</groupId> |
| 110 | + <artifactId>font-awesome</artifactId> |
| 111 | + <version>${webjars-font-awesome.version}</version> |
113 | 112 | </dependency>
|
114 | 113 | <dependency>
|
115 | 114 | <groupId>org.webjars</groupId>
|
|
144 | 143 | </dependency>
|
145 | 144 | </dependencies>
|
146 | 145 |
|
147 |
| - <build> |
148 |
| - <plugins> |
149 |
| - <plugin> |
150 |
| - <groupId>ro.isdc.wro4j</groupId> |
151 |
| - <artifactId>wro4j-maven-plugin</artifactId> |
152 |
| - <version>${wro4j.version}</version> |
153 |
| - <executions> |
154 |
| - <execution> |
155 |
| - <!-- Configuration tips for VS Code in Dev Container --> |
156 |
| - <?m2e execute onConfiguration?> |
157 |
| - <phase>generate-resources</phase> |
158 |
| - <goals> |
159 |
| - <goal>run</goal> |
160 |
| - </goals> |
161 |
| - </execution> |
162 |
| - </executions> |
163 |
| - <configuration> |
164 |
| - <wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory> |
165 |
| - <cssDestinationFolder>${project.build.directory}/classes/static/css</cssDestinationFolder> |
166 |
| - <wroFile>${basedir}/src/main/wro/wro.xml</wroFile> |
167 |
| - <extraConfigFile>${basedir}/src/main/wro/wro.properties</extraConfigFile> |
168 |
| - <contextFolder>${basedir}/src/main/less</contextFolder> |
169 |
| - </configuration> |
170 |
| - <dependencies> |
171 |
| - <dependency> |
172 |
| - <groupId>org.webjars</groupId> |
173 |
| - <artifactId>bootstrap</artifactId> |
174 |
| - <version>${webjars-bootstrap.version}</version> |
175 |
| - </dependency> |
176 |
| - <!-- Some tweak for wro4j 1.8 compatibility with Java 9+ --> |
177 |
| - <!-- See https://github.com/wro4j/wro4j/issues/1039 --> |
178 |
| - <dependency> |
179 |
| - <groupId>org.mockito</groupId> |
180 |
| - <artifactId>mockito-core</artifactId> |
181 |
| - <version>${mockito.version}</version> |
182 |
| - </dependency> |
183 |
| - </dependencies> |
184 |
| - </plugin> |
185 |
| - </plugins> |
186 |
| - </build> |
187 |
| - |
188 | 146 | <profiles>
|
189 | 147 | <profile>
|
190 | 148 | <id>buildDocker</id>
|
|
197 | 155 | </plugins>
|
198 | 156 | </build>
|
199 | 157 | </profile>
|
| 158 | + <profile> |
| 159 | + <id>css</id> |
| 160 | + <build> |
| 161 | + <plugins> |
| 162 | + <plugin> |
| 163 | + <groupId>org.apache.maven.plugins</groupId> |
| 164 | + <artifactId>maven-dependency-plugin</artifactId> |
| 165 | + <executions> |
| 166 | + <execution> |
| 167 | + <id>unpack</id> |
| 168 | + <?m2e execute onConfiguration,onIncremental?> |
| 169 | + <phase>generate-resources</phase> |
| 170 | + <goals> |
| 171 | + <goal>unpack</goal> |
| 172 | + </goals> |
| 173 | + <configuration> |
| 174 | + <artifactItems> |
| 175 | + <artifactItem> |
| 176 | + <groupId>org.webjars.npm</groupId> |
| 177 | + <artifactId>bootstrap</artifactId> |
| 178 | + <version>${webjars-bootstrap.version}</version> |
| 179 | + </artifactItem> |
| 180 | + </artifactItems> |
| 181 | + <outputDirectory>${project.build.directory}/webjars</outputDirectory> |
| 182 | + </configuration> |
| 183 | + </execution> |
| 184 | + </executions> |
| 185 | + </plugin> |
| 186 | + |
| 187 | + <plugin> |
| 188 | + <groupId>com.gitlab.haynes</groupId> |
| 189 | + <artifactId>libsass-maven-plugin</artifactId> |
| 190 | + <version>${libsass-maven-plugin.version}</version> |
| 191 | + <executions> |
| 192 | + <execution> |
| 193 | + <phase>generate-resources</phase> |
| 194 | + <?m2e execute onConfiguration,onIncremental?> |
| 195 | + <goals> |
| 196 | + <goal>compile</goal> |
| 197 | + </goals> |
| 198 | + </execution> |
| 199 | + </executions> |
| 200 | + <configuration> |
| 201 | + <inputPath>${basedir}/src/main/resources/static/scss/</inputPath> |
| 202 | + <outputPath>${basedir}/src/main/resources/static/css/</outputPath> |
| 203 | + <includePath>${project.build.directory}/webjars/META-INF/resources/webjars/bootstrap/${webjars-bootstrap.version}/scss/</includePath> |
| 204 | + </configuration> |
| 205 | + </plugin> |
| 206 | + </plugins> |
| 207 | + </build> |
| 208 | + </profile> |
200 | 209 | </profiles>
|
201 | 210 | </project>
|
0 commit comments