Skip to content

Commit

Permalink
Fix build scan performance test to use new enterprise plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby committed Oct 31, 2019
1 parent c1733a7 commit 0d236bc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ class BuildScanPluginPerformanceTest extends AbstractBuildScanPluginPerformanceT
void beforeExperiment(BuildExperimentSpec experimentSpec, File projectDir) {
def projectTestDir = new TestFile(projectDir)
def rootBuildScript = projectTestDir.file('build.gradle')
rootBuildScript.text = """
def settingsScript = projectTestDir.file('settings.gradle')
settingsScript.text = """
buildscript {
repositories {
maven {
Expand All @@ -196,14 +196,14 @@ class BuildScanPluginPerformanceTest extends AbstractBuildScanPluginPerformanceT
}

dependencies {
classpath "com.gradle:build-scan-plugin:${buildScanPluginVersion}"
classpath "com.gradle:gradle-enterprise-gradle-plugin:${buildScanPluginVersion}"
}
}

if (System.getProperty('enableScan')) {
apply plugin: 'com.gradle.build-scan'
apply plugin: 'com.gradle.enterprise'
}
""" + rootBuildScript.text
""" + settingsScript.text
}
}
}

0 comments on commit 0d236bc

Please sign in to comment.