Skip to content

Commit

Permalink
Simplify gradle setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rabelenda-abstracta committed Oct 30, 2023
1 parent 75de1c6 commit 7d04dab
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions docs/guide/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,8 @@ To use the DSL just include it in your project:
:::
::: code-group-item Gradle
```groovy
// this is required due to JMeter open issue: https://bz.apache.org/bugzilla/show_bug.cgi?id=64465
@CacheableRule
class JmeterRule implements ComponentMetadataRule {
void execute(ComponentMetadataContext context) {
context.details.allVariants {
withDependencies {
removeAll { it.group == "org.apache.jmeter" && it.name == "bom" }
}
}
}
}
dependencies {
...
testImplementation 'us.abstracta.jmeter:jmeter-java-dsl:1.23'
components {
withModule("org.apache.jmeter:ApacheJMeter_core", JmeterRule)
withModule("org.apache.jmeter:ApacheJMeter_java", JmeterRule)
withModule("org.apache.jmeter:ApacheJMeter", JmeterRule)
withModule("org.apache.jmeter:ApacheJMeter_http", JmeterRule)
withModule("org.apache.jmeter:ApacheJMeter_functions", JmeterRule)
withModule("org.apache.jmeter:ApacheJMeter_components", JmeterRule)
withModule("org.apache.jmeter:ApacheJMeter_config", JmeterRule)
withModule("org.apache.jmeter:jorphan", JmeterRule)
}
testImplementation("us.abstracta.jmeter:jmeter-java-dsl:1.23") {
exclude("org.apache.jmeter", "bom")
}
```
:::
Expand Down

0 comments on commit 7d04dab

Please sign in to comment.