Skip to content

Commit 1016bc6

Browse files
Merge pull request TechEmpower#1816 from jochenberger/patch-1
Update Tapestry to the latest version
2 parents 999cc6d + 0858c9f commit 1016bc6

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

frameworks/Java/tapestry/hello/pom.xml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@
2020
<dependency>
2121
<groupId>mysql</groupId>
2222
<artifactId>mysql-connector-java</artifactId>
23-
<version>5.1.23</version>
23+
<version>5.1.38</version>
2424
</dependency>
2525

2626
<!-- This adds automatic compression of JavaScript and CSS when in production mode. -->
27+
<!-- This currently breaks the resin deployment
28+
(see https://github.com/TechEmpower/FrameworkBenchmarks/pull/1816#issuecomment-167749791)
2729
<dependency>
2830
<groupId>org.apache.tapestry</groupId>
29-
<artifactId>tapestry-yuicompressor</artifactId>
31+
<artifactId>tapestry-webresources</artifactId>
3032
<version>${tapestry-release-version}</version>
3133
</dependency>
34+
-->
3235

3336
<!-- Uncomment this to add support for file uploads:
3437
@@ -83,7 +86,7 @@ of testing facilities designed for use with TestNG (http://testng.org/), so it's
8386
<dependency>
8487
<groupId>com.fasterxml.jackson.core</groupId>
8588
<artifactId>jackson-databind</artifactId>
86-
<version>2.3.0</version>
89+
<version>2.6.4</version>
8790
</dependency>
8891

8992
</dependencies>
@@ -133,16 +136,23 @@ of testing facilities designed for use with TestNG (http://testng.org/), so it's
133136

134137
<repositories>
135138

136-
<!-- This repository is only needed when the Tapestry version is a preview release, rather
137-
than a final release. -->
138139
<repository>
139-
<id>apache-staging</id>
140-
<url>https://repository.apache.org/content/groups/staging/</url>
140+
<id>maven-central</id>
141+
<url>https://repo1.maven.org/maven2</url>
142+
<snapshots>
143+
<enabled>false</enabled>
144+
</snapshots>
141145
</repository>
146+
<!-- This repository is only needed when the Tapestry version is a preview release, rather
147+
than a final release. -->
148+
<!-- <repository> -->
149+
<!-- <id>apache-staging</id> -->
150+
<!-- <url>https://repository.apache.org/content/groups/staging/</url> -->
151+
<!-- </repository> -->
142152
</repositories>
143153

144154
<properties>
145-
<tapestry-release-version>5.3.6</tapestry-release-version>
155+
<tapestry-release-version>5.4.0</tapestry-release-version>
146156
<servlet-api-release-version>2.5</servlet-api-release-version>
147157
<testng-release-version>5.14.10</testng-release-version>
148158
<easymock-release-version>3.0</easymock-release-version>

frameworks/Java/tapestry/hello/src/main/java/hello/services/AppModule.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,7 @@ public static void contributeApplicationDefaults(
4646
// the first locale name is the default when there's no reasonable match).
4747
configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en");
4848
configuration.add(SymbolConstants.OMIT_GENERATOR_META, true);
49+
configuration.add(SymbolConstants.INCLUDE_CORE_STACK, false);
4950

5051
}
51-
52-
public void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration){
53-
// prevent addition of the default stylesheet. There will be a symbol to toggle this behavior in Tapestry 5.4.
54-
configuration.override("InjectDefaultStylesheet", new MarkupRendererFilter() {
55-
56-
@Override
57-
public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) {
58-
renderer.renderMarkup(writer);
59-
}
60-
});
61-
}
6252
}

0 commit comments

Comments
 (0)