Videos
The error message is produced by an outdated version of CheckStyle.
According to the CheckStyle ticket Support for Java 15 Strings you need at least CheckStyle version 8.36 if you want to use text blocks / multiline strings together with CheckStyle checks.
The error message (org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check) indicates that your project uses the Maven-CheckStyle-Plugin version 2.17 which according to Maven Checkstyle Plugin Releases History by default uses CheckStyle version 6.11.2
You can try to configure your project to use the Maven CheckStyle Plugin 2.17 together with the CheckStyle version 8.36 using the following configuration (source: Upgrading Checkstyle at Runtime):
<project>
...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.36</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
...
</project>
Upgrading the maven-checkstyle-plugin and checkstyle resolved the issue:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.3.0</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.12.1</version>
</dependency>
</dependencies>
</plugin>