-
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 #90 from Duhemm/jar-url
Support setting the URL of the JAR to resolve
- Loading branch information
Showing
9 changed files
with
234 additions
and
38 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
17 changes: 17 additions & 0 deletions
17
multiversion/src/main/scala/multiversion/diagnostics/ForbiddenUrlAttributeDiagnostic.scala
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package multiversion.diagnostics | ||
|
||
import moped.reporters.Diagnostic | ||
import moped.reporters.ErrorSeverity | ||
import moped.reporters.Position | ||
import multiversion.diagnostics.MultidepsEnrichments._ | ||
|
||
class ForbiddenUrlAttributeDiagnostic( | ||
targets: List[String], | ||
pos: Position | ||
) extends Diagnostic(ErrorSeverity, "", pos) { | ||
override def message: String = { | ||
s"""|The third party dependency declaration in ${targets.commas} is defining the URL of the JAR | ||
|to resolve, which is not permitted. | ||
|""".stripMargin | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
multiversion/src/main/scala/multiversion/diagnostics/TransitiveUrlDiagnostic.scala
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package multiversion.diagnostics | ||
|
||
import moped.reporters.Diagnostic | ||
import moped.reporters.Position | ||
import moped.reporters.WarningSeverity | ||
import multiversion.diagnostics.MultidepsEnrichments._ | ||
|
||
class TransitiveUrlDiagnostic( | ||
targets: List[String], | ||
pos: Position | ||
) extends Diagnostic(WarningSeverity, "", pos) { | ||
override def message: String = { | ||
s"""|The third party dependency declaration in ${targets.commas} is defining the URL of the JAR | ||
|to resolve, but isn't marked as intransitive. It will be considered intransitive. | ||
|""".stripMargin | ||
} | ||
} |
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
Oops, something went wrong.