-
Notifications
You must be signed in to change notification settings - Fork 873
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
Migrate MuzzlePlugin to Java #3017
Conversation
|
||
private final Collection<String> skipVersions; | ||
|
||
AcceptableVersions(Collection<String> skipVersions) { |
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.
Removed unused range
parameter
} | ||
|
||
private static synchronized ClassLoader getOrCreateToolingLoader(Project project) { | ||
if (TOOLING_LOADER == null) { |
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.
Switched to normal volatile since we were synchronized anyways
return TOOLING_LOADER; | ||
} | ||
|
||
private static ClassLoader classpathLoader( |
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.
Extracted method
private static RepositorySystemSession newRepositorySystemSession( | ||
RepositorySystem system, Project project) { | ||
DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession(); | ||
File muzzleRepo = project.file("build/muzzleRepo"); |
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 could use a normal temp directory like before but figured it's nice to use user temp directory as little as possible for Gradle builds
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.
👍
No description provided.