-
Notifications
You must be signed in to change notification settings - Fork 23
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 #113 from chali/PomAndIvyContentIsNotMissing
Pom and ivy files have the right content when STABLE_PUBLISHING is enabled
- Loading branch information
Showing
6 changed files
with
93 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
package nebula.plugin.publishing.maven | ||
|
||
import nebula.test.IntegrationTestKitSpec | ||
import spock.lang.Unroll | ||
|
||
class MavenDeveloperPluginIntegrationSpec extends IntegrationTestKitSpec { | ||
def setup() { | ||
|
@@ -34,7 +35,8 @@ class MavenDeveloperPluginIntegrationSpec extends IntegrationTestKitSpec { | |
'''.stripIndent() | ||
} | ||
|
||
def 'take info from contacts plugin and place in pom'() { | ||
@Unroll | ||
def 'take info from contacts plugin and place in pom with #publishingType'() { | ||
buildFile << '''\ | ||
apply plugin: 'nebula.contacts' | ||
|
@@ -46,6 +48,10 @@ class MavenDeveloperPluginIntegrationSpec extends IntegrationTestKitSpec { | |
} | ||
'''.stripIndent() | ||
|
||
settingsFile << """ | ||
$settingsUpdate | ||
""" | ||
|
||
when: | ||
runTasks('generatePomFileForNebulaPublication') | ||
|
||
|
@@ -60,6 +66,12 @@ class MavenDeveloperPluginIntegrationSpec extends IntegrationTestKitSpec { | |
devs[0].name.text() == 'Example Nebula' | ||
devs[0].email.text() == '[email protected]' | ||
devs[0].id.text() == 'nebula-plugins' | ||
|
||
where: | ||
publishingType | settingsUpdate | ||
"STABLE_PUBLISHING" | "enableFeaturePreview(\"STABLE_PUBLISHING\")" | ||
"default publishing"| "" | ||
|
||
} | ||
|
||
def 'multiple contacts'() { | ||
|