Skip to content

Commit 21f2a5a

Browse files
committed
Merge branch 'pug4j-2.x'
# Conflicts: # README.md # pom.xml
2 parents 824a069 + f8a3341 commit 21f2a5a

File tree

2 files changed

+54
-17
lines changed

2 files changed

+54
-17
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ applicationContext.xml
1313
<property name="templateLoaderPath" value="classpath:/templates" />
1414
</bean>
1515

16-
<bean id="expressionHandler" class="de.neuland.pug4j.expression.GraalJsExpressionHandler">
17-
</bean>
18-
1916
<bean id="pugConfiguration" class="de.neuland.pug4j.PugConfiguration">
2017
<property name="prettyPrint" value="false" />
2118
<property name="caching" value="false" />
2219
<property name="templateLoader" ref="templateLoader" />
23-
<!--<property name="expressionHandler" ref="expressionHandler" />-->
2420
</bean>
2521

2622
<bean id="viewResolver" class="de.neuland.pug4j.spring.view.PugViewResolver">
@@ -32,7 +28,6 @@ applicationContext.xml
3228
Or, if you are using Spring JavaConfig:
3329

3430
```java
35-
import de.neuland.pug4j.expression.GraalJsExpressionHandler;
3631

3732
@Configuration
3833
public class PugConfig {
@@ -51,8 +46,6 @@ public class PugConfig {
5146
PugConfiguration configuration = new PugConfiguration();
5247
configuration.setCaching(false);
5348
configuration.setTemplateLoader(templateLoader());
54-
//To use the new GraalJsExpressionHandler add this:
55-
//configuration.setExpressionHandler(new GraalJsExpressionHandler());
5649
return configuration;
5750
}
5851

@@ -89,7 +82,7 @@ Just add following dependency definitions to your `pom.xml`.
8982
<dependency>
9083
<groupId>de.neuland-bfi</groupId>
9184
<artifactId>spring-pug4j</artifactId>
92-
<version>3.3.0</version>
85+
<version>3.3.1</version>
9386
</dependency>
9487
```
9588

pom.xml

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
<commons-io.version>2.18.0</commons-io.version>
6969
<junit.version>4.13.2</junit.version>
7070
<mockito-core.version>5.6.0</mockito-core.version>
71-
<pug4j.version>2.3.0</pug4j.version>
71+
<pug4j.version>2.3.1</pug4j.version>
7272
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
7373
<maven-release-plugin.version>3.0.1</maven-release-plugin.version>
7474
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
7575
<maven-surefire-plugin.version>3.0.0</maven-surefire-plugin.version>
7676
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
7777
<maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version>
78-
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
78+
<maven-deploy-plugin.version>3.1.3</maven-deploy-plugin.version>
7979
</properties>
8080

8181
<profiles>
@@ -135,7 +135,9 @@
135135
<version>${maven-surefire-plugin.version}</version>
136136
<configuration>
137137
<useFile>false</useFile>
138+
<useModulePath>false</useModulePath>
138139
<trimStackTrace>false</trimStackTrace>
140+
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
139141
</configuration>
140142
</plugin>
141143
<plugin>
@@ -164,6 +166,26 @@
164166
</execution>
165167
</executions>
166168
</plugin>
169+
<plugin>
170+
<groupId>org.apache.maven.plugins</groupId>
171+
<artifactId>maven-enforcer-plugin</artifactId>
172+
<version>3.4.1</version>
173+
<executions>
174+
<execution>
175+
<id>enforce-maven</id>
176+
<goals>
177+
<goal>enforce</goal>
178+
</goals>
179+
<configuration>
180+
<rules>
181+
<requireMavenVersion>
182+
<version>3.0</version>
183+
</requireMavenVersion>
184+
</rules>
185+
</configuration>
186+
</execution>
187+
</executions>
188+
</plugin>
167189
<plugin>
168190
<!-- explicitly define maven-deploy-plugin after other to force exec order -->
169191
<groupId>org.apache.maven.plugins</groupId>
@@ -179,8 +201,30 @@
179201
</execution>
180202
</executions>
181203
</plugin>
182-
</plugins>
183-
</build>
204+
<plugin>
205+
<artifactId>maven-clean-plugin</artifactId>
206+
<version>3.3.2</version>
207+
</plugin>
208+
<plugin>
209+
<artifactId>maven-install-plugin</artifactId>
210+
<version>3.1.3</version>
211+
</plugin>
212+
<!-- <plugin>-->
213+
<!-- <groupId>org.apache.maven.plugins</groupId>-->
214+
<!-- <artifactId>maven-jar-plugin</artifactId>-->
215+
<!-- <version>3.4.2</version>-->
216+
<!-- <configuration>-->
217+
<!-- <archive>-->
218+
<!-- <manifestEntries>-->
219+
<!-- &lt;!&ndash; For Java 11 Modules, specify a module name. Do not create module-info.java until all-->
220+
<!-- our dependencies specify a module name. &ndash;&gt;-->
221+
<!-- <Automatic-Module-Name>de.neuland.pug4j.spring</Automatic-Module-Name>-->
222+
<!-- </manifestEntries>-->
223+
<!-- </archive>-->
224+
<!-- </configuration>-->
225+
<!-- </plugin>-->
226+
</plugins>
227+
</build>
184228

185229
<dependencies>
186230
<dependency>
@@ -230,12 +274,12 @@
230274
<version>${commons-io.version}</version>
231275
</dependency>
232276

233-
<!-- Other dependencies -->
234-
<dependency>
235-
<groupId>org.slf4j</groupId>
236-
<artifactId>slf4j-api</artifactId>
277+
<!-- Other dependencies -->
278+
<dependency>
279+
<groupId>org.slf4j</groupId>
280+
<artifactId>slf4j-api</artifactId>
237281
<version>${slf4j-api.version}</version>
238-
</dependency>
282+
</dependency>
239283

240284
<!-- Test -->
241285
<dependency>

0 commit comments

Comments
 (0)