Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from nebula-plugins/version-match
Add version matchers to align rules
- Loading branch information
Showing
11 changed files
with
1,399 additions
and
1,230 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/functionalTest/groovy/nebula/plugin/resolutionrules/AbstractAlignRulesSpec.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,23 @@ | ||
package nebula.plugin.resolutionrules | ||
|
||
import nebula.test.IntegrationSpec | ||
|
||
class AbstractAlignRulesSpec extends IntegrationSpec { | ||
def rulesJsonFile | ||
|
||
def setup() { | ||
rulesJsonFile = new File(projectDir, "${moduleName}.json") | ||
buildFile << """\ | ||
${applyPlugin(ResolutionRulesPlugin)} | ||
apply plugin: 'java' | ||
dependencies { | ||
resolutionRules files('$rulesJsonFile') | ||
} | ||
""".stripIndent() | ||
|
||
settingsFile << '''\ | ||
rootProject.name = 'aligntest' | ||
'''.stripIndent() | ||
} | ||
} |
Oops, something went wrong.