Skip to content
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

Fix issues with Idea plugin and presto tests #22

Merged
merged 3 commits into from
May 16, 2019

Conversation

shardulm94
Copy link
Contributor

  • The idea plugin needs a scala-library on the classpath when the scala plugin is applied even when there are no scala sources. So we explicitly add the scala library as a dependency of main sourceSet.
  • presto-main:tests is a transitive dependency of transportable-udfs-test-presto, but some POM to IVY converters drop dependency classifiers, so we apply this dependency explicitly.

@@ -101,7 +107,13 @@ private static Properties loadDefaultVersions() {

private static DependencyConfiguration getDependencyConfiguration(ConfigurationType configurationType,
String module, String platform) {
return new DependencyConfiguration(configurationType,
module + ":" + DEFAULT_VERSIONS.getProperty(platform + "-version"));
return getDependencyConfiguration(configurationType, module, platform, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Overload the method instead of passing null and checking inside with an if condition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would lead to code duplication. I am not sure if code duplication is better than having a simple if condition.

@shardulm94 shardulm94 merged commit 21b3909 into linkedin:master May 16, 2019
@shardulm94 shardulm94 deleted the plugin-fix branch May 16, 2019 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants