Skip to content

Commit

Permalink
Link to Mermaid 9.4.3 instead of the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
platan committed Mar 12, 2023
1 parent 80119d2 commit 7b73ab1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ test 1 - 213 ms :active, 2022-11-08T20:46:17.854+0100, 2022-11-08T20:46:18.067+0

Options:

| Key | Type | Description | Default |
|------------------------------------------|---------|--------------------------------------------------------------------|------------------------------------------------------------|
| `formats.html.enabled` | boolean | Generate report in html format | `true` |
| `formats.html.script.embed` | boolean | If true mermaid source will be downloaded and used locally in html | `false` |
| `formats.html.script.src` | url | Url to mermaid which should be used to generate html report | `https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js` |
| `formats.html.script.config.maxTextSize` | int | Limit on the size of text used to generate diagrams | `50000` |
| `formats.json.enabled` | boolean | Generate report in json format | `true` |
| `formats.mermaid.enabled` | boolean | Generate report in mermaid text format | `true` |
| Key | Type | Description | Default |
|------------------------------------------|---------|--------------------------------------------------------------------|------------------------------------------------------------------|
| `formats.html.enabled` | boolean | Generate report in html format | `true` |
| `formats.html.script.embed` | boolean | If true mermaid source will be downloaded and used locally in html | `false` |
| `formats.html.script.src` | url | Url to mermaid which should be used to generate html report | `https://cdn.jsdelivr.net/npm/mermaid@9.4.3/dist/mermaid.min.js` |
| `formats.html.script.config.maxTextSize` | int | Limit on the size of text used to generate diagrams | `50000` |
| `formats.json.enabled` | boolean | Generate report in json format | `true` |
| `formats.mermaid.enabled` | boolean | Generate report in mermaid text format | `true` |

`build.gradle.kts`:

Expand All @@ -136,7 +136,7 @@ configure<io.github.platan.tests_execution_chart.CreateTestsExecutionReportExten
config {
maxTextSize.set(110000)
}
src.set("https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js")
src.set("https://cdn.jsdelivr.net/npm/mermaid@9.4.3/dist/mermaid.min.js")
}
}
json {
Expand All @@ -161,7 +161,7 @@ createTestsExecutionReport {
config {
maxTextSize = 110000
}
src = "https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"
src = "https://cdn.jsdelivr.net/npm/mermaid@9.4.3/dist/mermaid.min.js"
}
}
json {
Expand Down Expand Up @@ -230,6 +230,7 @@ Gradle can generate reports in JUnit XML format. But such reports cannot be used
### Changed

- Use `dateFormat` compatible with Mermaid 9.4.2
- Link to Mermaid 9.4.3 instead of the latest version

## 0.2.1 (07 March 2023)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Nested
import javax.inject.Inject

private const val DEFAULT_SRC = "https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"
private const val DEFAULT_SRC = "https://cdn.jsdelivr.net/npm/mermaid@9.4.3/dist/mermaid.min.js"

abstract class Script @Inject constructor(objectFactory: ObjectFactory) {

Expand Down

0 comments on commit 7b73ab1

Please sign in to comment.