Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

give quicker feedback when setup incorrect #181

Merged
merged 2 commits into from
Feb 5, 2018
Merged

Conversation

blundell
Copy link
Contributor

@blundell blundell commented Feb 4, 2018

Was using on a pet project this weekend and wanted to sync once I added the dependency (but not written the closure yet). You get a cryptic error message like this:

screen shot 2018-02-04 at 7 46 36 pm

So now if you don't have the closure, ie:

screen shot 2018-02-04 at 7 46 49 pm

You get this error message:

screen shot 2018-02-04 at 7 47 03 pm

Also added a change of error message for each missing individual required field of the closure.

ArtifactId missing:

screen shot 2018-02-04 at 7 47 19 pm

gives:

screen shot 2018-02-04 at 7 47 14 pm


The readme says

If you use Kotlin DSL use: (do something else)

I Have not tested this in a kotlin prj :-)

}
if (extensionError) {
String prefix = "Have you created the publish closure? "
throw new IllegalStateException(prefix + extensionError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are they all mandatory? I was thinking the description can be optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tasomaniac
Copy link
Contributor

This fixes #118 right?

@blundell
Copy link
Contributor Author

blundell commented Feb 5, 2018

yeah it will give better feedback in that error case

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants