Skip to content

Commit e783266

Browse files
authored
Merge pull request #426 from xdev-software/develop
Release
2 parents 3f5a12a + e8ba9fc commit e783266

19 files changed

Lines changed: 45 additions & 41 deletions

File tree

.config/pmd/java/ruleset.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ruleset name="Default"
33
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
5+
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.github.io/ruleset_2_0_0.xsd">
66

77
<description>
88
This ruleset checks the code for discouraged programming constructs.
@@ -204,7 +204,7 @@
204204

205205
<rule name="AvoidStringBuilderOrBuffer"
206206
language="java"
207-
message="StringBuilder/ should not be used"
207+
message="StringBuilder/StringBuffer should not be used"
208208
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule">
209209
<description>
210210
Usually all cases where `StringBuilder` (or the outdated `StringBuffer`) is used are either due to confusing (legacy) logic or may be replaced by a simpler string concatenation.

.github/workflows/broken-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Find already existing issue
2727
id: find-issue
2828
run: |
29-
echo "number=$(gh issue list -l 'bug' -l 'automated' -L 1 -S 'in:title \"Link Checker Report\"' -s 'open' --json 'number' --jq '.[].number')" >> $GITHUB_OUTPUT
29+
echo "number=$(gh issue list -l 'bug' -l 'automated' -L 1 -S 'in:title "Link Checker Report"' -s 'open' --json 'number' --jq '.[].number')" >> $GITHUB_OUTPUT
3030
env:
3131
GH_TOKEN: ${{ github.token }}
3232

@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Create Issue From File
4040
if: steps.lychee.outputs.exit_code != 0
41-
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
41+
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6
4242
with:
4343
issue-number: ${{ steps.find-issue.outputs.number }}
4444
title: Link Checker Report

.github/workflows/check-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
timeout-minutes: 30
2929
strategy:
3030
matrix:
31-
java: [21]
31+
java: [21, 25]
3232
distribution: [temurin]
3333
steps:
3434
- uses: actions/checkout@v5

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.8.1
2+
* Updated dependencies
3+
14
# 2.8.0
25
* ``selenium``
36
* Moved warmUp code to correct factory

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ We also encourage you to read the [contribution instructions by GitHub](https://
1919
### Software Requirements
2020
You should have the following things installed:
2121
* Git
22-
* Java 21 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
22+
* Java 25 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
2323
* Maven (Note that the [Maven Wrapper](https://maven.apache.org/wrapper/) is shipped with the repo)
2424

2525
### Recommended setup

advanced-demo/integration-tests/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<dependency>
6868
<groupId>org.seleniumhq.selenium</groupId>
6969
<artifactId>selenium-dependencies-bom</artifactId>
70-
<version>4.35.0</version>
70+
<version>4.36.0</version>
7171
<type>pom</type>
7272
<scope>import</scope>
7373
</dependency>
@@ -77,7 +77,7 @@
7777
<dependency>
7878
<groupId>org.junit</groupId>
7979
<artifactId>junit-bom</artifactId>
80-
<version>5.13.4</version>
80+
<version>6.0.0</version>
8181
<type>pom</type>
8282
<scope>import</scope>
8383
</dependency>

advanced-demo/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<dependency>
7171
<groupId>org.junit</groupId>
7272
<artifactId>junit-bom</artifactId>
73-
<version>5.13.4</version>
73+
<version>6.0.0</version>
7474
<type>pom</type>
7575
<scope>import</scope>
7676
</dependency>
@@ -109,7 +109,7 @@
109109
<dependency>
110110
<groupId>software.xdev.sse</groupId>
111111
<artifactId>bom</artifactId>
112-
<version>1.4.0</version>
112+
<version>1.5.2</version>
113113
<type>pom</type>
114114
<scope>import</scope>
115115
</dependency>
@@ -196,7 +196,7 @@
196196
<dependency>
197197
<groupId>com.puppycrawl.tools</groupId>
198198
<artifactId>checkstyle</artifactId>
199-
<version>11.0.1</version>
199+
<version>11.1.0</version>
200200
</dependency>
201201
</dependencies>
202202
<configuration>

advanced-demo/webapp/src/main/java/software/xdev/tci/demo/security/MainWebSecurity.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,23 @@
1515
import software.xdev.spring.security.web.authentication.ui.advanced.AdvancedLoginPageAdapter;
1616
import software.xdev.spring.security.web.authentication.ui.advanced.config.AdditionalOAuth2ClientProperties;
1717
import software.xdev.sse.csp.CSPGenerator;
18+
import software.xdev.sse.web.hsts.HstsApplier;
1819

1920

2021
@EnableWebSecurity
2122
@Configuration
2223
@EnableConfigurationProperties(AdditionalOAuth2ClientProperties.class)
2324
public class MainWebSecurity
2425
{
25-
@SuppressWarnings("java:S4502") // See below
26-
@Bean(name = "mainSecurityFilterChainBean")
27-
public SecurityFilterChain configure(
26+
@Bean
27+
public SecurityFilterChain mainSecurityFilterChain(
2828
final HttpSecurity http,
2929
final CSPGenerator cspGenerator,
30-
final AdditionalOAuth2ClientProperties additionalOAuth2ClientProperties) throws Exception
30+
final AdditionalOAuth2ClientProperties additionalOAuth2ClientProperties,
31+
final HstsApplier hstsApplier)
32+
throws Exception
3133
{
32-
http.with(
34+
return http.with(
3335
new AdvancedLoginPageAdapter<>(http),
3436
c -> c
3537
.customizePages(p -> p.setHeaderElements(List.of(
@@ -46,7 +48,7 @@ public SecurityFilterChain configure(
4648
+ "</div>"
4749
+ "<h2 class='h2 mb-3 text-center'>Demo</h2>")
4850
))
49-
.headers(h -> h
51+
.headers(h -> hstsApplier.apply(h)
5052
.referrerPolicy(r -> r.policy(ReferrerPolicyHeaderWriter.ReferrerPolicy.SAME_ORIGIN))
5153
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
5254
.contentTypeOptions(Customizer.withDefaults())
@@ -57,9 +59,8 @@ public SecurityFilterChain configure(
5759
.authorizeHttpRequests(urlRegistry -> urlRegistry.anyRequest().authenticated())
5860
.logout(Customizer.withDefaults())
5961
// nothing needs to be saved
60-
.requestCache(r -> r.requestCache(new NullRequestCache()));
61-
62-
return http.build();
62+
.requestCache(r -> r.requestCache(new NullRequestCache()))
63+
.build();
6364
}
6465

6566
}

base-demo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
<dependency>
3939
<groupId>org.junit.jupiter</groupId>
4040
<artifactId>junit-jupiter</artifactId>
41-
<version>5.13.4</version>
41+
<version>6.0.0</version>
4242
<scope>test</scope>
4343
</dependency>
4444

4545
<dependency>
4646
<groupId>ch.qos.logback</groupId>
4747
<artifactId>logback-classic</artifactId>
48-
<version>1.5.18</version>
48+
<version>1.5.19</version>
4949
<scope>test</scope>
5050
</dependency>
5151
</dependencies>

base/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@
8181
<groupId>org.junit.platform</groupId>
8282
<artifactId>junit-platform-launcher</artifactId>
8383
<scope>compile</scope>
84-
<version>1.13.4</version>
84+
<version>6.0.0</version>
8585
</dependency>
8686

8787
<!-- Tests -->
8888
<dependency>
8989
<groupId>org.junit.jupiter</groupId>
9090
<artifactId>junit-jupiter</artifactId>
91-
<version>5.13.4</version>
91+
<version>6.0.0</version>
9292
<scope>test</scope>
9393
</dependency>
9494
<dependency>
@@ -318,7 +318,7 @@
318318
<dependency>
319319
<groupId>com.puppycrawl.tools</groupId>
320320
<artifactId>checkstyle</artifactId>
321-
<version>11.0.1</version>
321+
<version>11.1.0</version>
322322
</dependency>
323323
</dependencies>
324324
<configuration>

0 commit comments

Comments
 (0)