-
Notifications
You must be signed in to change notification settings - Fork 617
Update semver tests and the pom validator tests to handle new sdk #5133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Release note changesNo release note changes were detected. If you made changes that should be |
Generated by 🚫 Danger |
Size Report 1Affected Products
Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments- they aren't major; so if you need to get this out asap go ahead:)
@@ -43,10 +43,15 @@ abstract class PomValidator : DefaultTask() { | |||
|
|||
@TaskAction | |||
fun run() { | |||
var diff = diffWithPomFromURL(getLatestReleasePomUrl()) | |||
try { | |||
var diff = diffWithPomFromURL(getLatestReleasePomUrl()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize I accidentally left this as var
- this should probably be changed to val
|
||
from(project.zipTree("semver/previous.aar")) | ||
into(project.file("semver/previous-version")) | ||
if (project.file("semver/previous.aar").exists()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep in mind that if this file is added by any task- this will fail. This check will occur at configuration time, not execution time.
try { | ||
URL(gMavenPath).openStream().use { Files.copy(it, Paths.get(filePath.get())) } | ||
} catch (_: java.io.FileNotFoundException) { | ||
// Gmaven Artifact doesn't exist. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be fine to replace these empty returns with StopActionException
for more information.
throw StopActionException("GMaven artifact doesn't exist")
Coverage Report 1Affected Products
Test Logs |
No description provided.