Add tests for BintrayReleasePlugin
@@ -7,7 +7,27 @@ import testutil.PluginSpecification
class BintrayReleasePluginTest extends PluginSpecification {
- def "configures tasks"() {
+ def "configures tasks with user pulication repo"() {
+ conf.releaseNotes.publicationRepository = "publicRepo"
+
+ project.plugins.apply(BintrayReleasePlugin)
+ project.plugins.apply(JavaBintrayPlugin)
+
+ project.bintray.pkg.userOrg = "some-org"
+ project.bintray.pkg.repo = "some-repo"
+ project.bintray.pkg.name = "some-pkg"
+
+ when:
+ project.evaluate()
+
+ then:
+ UpdateReleaseNotesTask updateNotes = project.tasks.getByName(ReleaseNotesPlugin.UPDATE_NOTES_TASK)
+ updateNotes.publicationRepository == "publicRepo"
+ }
+
+ def "configures tasks with bintray plugin pulication repo"() {
+ conf.releaseNotes.publicationRepository = null
+
project.plugins.apply(BintrayReleasePlugin)
project.plugins.apply(JavaBintrayPlugin)
