-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce BaseIntegrationTestKitSpec * FindMethodReferencesSpec: use BaseIntegrationTestKitSpec * MultiProjectCircularDependencyRuleSpec: use BaseIntegrationTestKitSpec * Use lazy registration for lintGradleTask * FixGradleLintTask: use lazy apis * GradleLintReportTask.groovy: use lazy apis
- Loading branch information
Showing
30 changed files
with
166 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/test/groovy/com/netflix/nebula/lint/BaseIntegrationTestKitSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.netflix.nebula.lint | ||
|
||
import nebula.test.IntegrationTestKitSpec | ||
|
||
abstract class BaseIntegrationTestKitSpec extends IntegrationTestKitSpec { | ||
def setup() { | ||
// Enable configuration cache :) | ||
//new File(projectDir, 'gradle.properties') << '''org.gradle.configuration-cache=true'''.stripIndent() | ||
} | ||
|
||
|
||
void disableConfigurationCache() { | ||
def propertiesFile = new File(projectDir, 'gradle.properties') | ||
if(propertiesFile.exists()) { | ||
propertiesFile.delete() | ||
} | ||
propertiesFile.createNewFile() | ||
propertiesFile << '''org.gradle.configuration-cache=false'''.stripIndent() | ||
} | ||
} |
Oops, something went wrong.