Skip to content

Commit

Permalink
feat: 🏅 support java 11 (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Boz <[email protected]>
  • Loading branch information
jboz and Julien Boz authored Jan 19, 2024
1 parent 8653bbc commit 7898f79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up java
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 19
distribution: adopt
cache: maven
server-id: ossrh
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>ch.ifocusit.asciidoctor</groupId>
<artifactId>asciidoctor-gherkin-extension</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>asciidoctor-gherkin-extension</name>
Expand Down Expand Up @@ -43,7 +43,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,10 @@ public String build() {
container.put("feature", GherkinExtensionHelper.parse(featureContent));
container.put("template_content", templateContent);

String result = (String) container.runScriptlet("""
require('erb')
erb = ERB.new(template_content, trim_mode: "<>")
asciidoc = erb.result(binding)
asciidoc
""");
String result = (String) container.runScriptlet("require('erb')\n" +
"erb = ERB.new(template_content, trim_mode: \"<>\")\n" +
"asciidoc = erb.result(binding)\n" +
"asciidoc\n");

return result;
}
Expand Down

0 comments on commit 7898f79

Please sign in to comment.