Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
fix: add scala SDK for usage in IntelliJ IDEA
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed May 8, 2020
1 parent 53fa00e commit 3180d57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class GatlingPlugin implements Plugin<Project> {

project.afterEvaluate { Project p ->
p.dependencies {
implementation "org.scala-lang:scala-library:${p.extensions.getByType(GatlingPluginExtension).scalaVersion}"
gatlingImplementation "org.scala-lang:scala-library:${p.extensions.getByType(GatlingPluginExtension).scalaVersion}"
gatling "io.gatling.highcharts:gatling-charts-highcharts:${p.extensions.getByType(GatlingPluginExtension).toolVersion}"
}
Expand Down
6 changes: 6 additions & 0 deletions src/test/groovy/unit/GatlingPluginTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class GatlingPluginTest extends GatlingUnitSpec {
project.configurations.getByName("gatlingImplementation").allDependencies.find {
it.name == "scala-library" && it.version == GatlingPluginExtension.SCALA_VERSION
}
project.configurations.getByName("implementation").allDependencies.find {
it.name == "scala-library" && it.version == GatlingPluginExtension.SCALA_VERSION
}
}

def "should allow overriding gatling version via extension"() {
Expand All @@ -58,6 +61,9 @@ class GatlingPluginTest extends GatlingUnitSpec {
project.configurations.getByName("gatlingImplementation").allDependencies.find {
it.name == "scala-library" && it.version == "2.11.3"
}
project.configurations.getByName("implementation").allDependencies.find {
it.name == "scala-library" && it.version == "2.11.3"
}
}

def "should create gatlingRun task"() {
Expand Down

0 comments on commit 3180d57

Please sign in to comment.