Skip to content

Commit a98ee7c

Browse files
committed
Merge pull request #15 from rspieldenner/circulartestfailure
Circulartestfailure
2 parents 9f17df7 + e9b6fbd commit a98ee7c

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.2.2 / 2016/04/25
2+
==================
3+
- BUGFIX: Handle circularish dependencies B depends on A for compile, A depends on B for testCompile
4+
15
1.2.1 / 2016/04/19
26
==================
37
- BUGFIX: Make sure resolutionRules configuration can be locked by nebula.dependency-lock

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The [Blacklist Plugin](https://github.com/nebula-plugins/gradle-blacklist-plugin
2121
}
2222
2323
dependencies {
24-
classpath 'com.netflix.nebula:gradle-resolution-rules-plugin:1.2.1'
24+
classpath 'com.netflix.nebula:gradle-resolution-rules-plugin:1.2.2'
2525
}
2626
}
2727
@@ -32,7 +32,7 @@ Or using the Gradle plugin portal:
3232

3333
```groovy
3434
plugins {
35-
id 'nebula.resolution-rules' version '1.2.1'
35+
id 'nebula.resolution-rules' version '1.2.2'
3636
}
3737
```
3838

@@ -149,7 +149,7 @@ The `nebula.resolution-rules-producer` plugin is provided to facilitate creation
149149
}
150150
151151
dependencies {
152-
classpath 'com.netflix.nebula:gradle-resolution-rules-plugin:1.2.0'
152+
classpath 'com.netflix.nebula:gradle-resolution-rules-plugin:1.2.2'
153153
}
154154
}
155155
@@ -160,7 +160,7 @@ Or using the Gradle plugin portal:
160160

161161
```groovy
162162
plugins {
163-
id 'nebula.resolution-rules-producer' version '1.2.0'
163+
id 'nebula.resolution-rules-producer' version '1.2.2'
164164
}
165165
```
166166

src/functionalTest/groovy/nebula/plugin/resolutionrules/AlignRulesMultiprojectSpec.groovy

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ class AlignRulesMultiprojectSpec extends IntegrationSpec {
102102
{
103103
"deny": [], "reject": [], "substitute": [], "replace": [],
104104
"align": [
105+
{
106+
"name": "testNebula",
107+
"group": "test",
108+
"reason": "Align test.nebula dependencies",
109+
"author": "Example Person <person@example.org>",
110+
"date": "2016-03-17T20:21:20.368Z"
111+
}
105112
]
106113
}
107114
'''.stripIndent()

src/main/groovy/nebula/plugin/resolutionrules/ResolutionRulesPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ResolutionRulesPlugin implements Plugin<Project> {
3939
def extension = project.extensions.create('nebulaResolutionRules', NebulaResolutionRulesExtension)
4040

4141
project.gradle.projectsEvaluated {
42-
project.configurations.all{ Configuration config ->
42+
project.configurations.all { Configuration config ->
4343
if (config.name == configurationName) {
4444
return
4545
}

src/main/groovy/nebula/plugin/resolutionrules/Rules.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ class AlignRules implements ProjectConfigurationRule {
210210
}
211211

212212
def detached = configuration.copyRecursive()
213+
detached.exclude group: project.group, module: project.name
213214
def artifacts
214215
if (detached.resolvedConfiguration.hasError()) {
215216
project.logger.info('Cannot resolve all dependencies to align')

0 commit comments

Comments
 (0)