You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var remoteUrl = stripProtocol(this.gitversion.version.info.url)
94
100
var url = remoteUrl
95
101
if (organization && repo) {
@@ -108,17 +114,16 @@ final class PomUtils {
108
114
}
109
115
110
116
if (!url) {
111
-
var e =newIllegalStateException('Cannot set GitHub details without a URL')
112
-
throwthis.problems.reporter.throwing(e, ProblemId.create('github-details-failed', 'Failed to get GitHub URL', GradleUtils.PROBLEM_GROUP)) { spec->
117
+
this.problems.reporter.report(ProblemId.create('github-details-failed', 'Failed to get GitHub URL', GradleUtils.PROBLEM_GROUP)) { spec->
113
118
spec.details("""
114
119
The GitHub URL for this repo could not be automatically determined by GitVersion.
115
120
This is likely due to the repository not having any remotes, or not having one set.""")
116
121
.severity(Severity.ERROR)
117
122
.stackLocation()
118
-
.withException(e)
119
123
.solution('Ensure that you have a remote set for your repository')
120
124
.solution("Alternatively, define the URL using gradleutils.pom.setGitHubDetails(pom, 'MyOrganization', 'MyRepo') (the organization can be omitted if you are using 'MinecraftForge')")
0 commit comments