-
Notifications
You must be signed in to change notification settings - Fork 7
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
move utils module here from gocd-s3-artifacts plugin #17
base: master
Are you sure you want to change the base?
Conversation
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.
@rucha3 I know some code in gocd-s3-artifacts was written in Java because we didn't want to add Scala dependency to make the JAR heavy. But somehow the artifact plugin still ended up in Scala anyways. So, can we please consider moving these to Scala too? That way all the new places where we plan to use this would be in Scala. Some of the wrappers like Function
, Functions
, etc. can we completely removed and this would become much cleaner.
We can refactor or migrate the gocd-s3-artifacts plugin later to use this utils-gocd module.
build.sbt
Outdated
@@ -10,7 +10,7 @@ lazy val commonSettings = Seq( | |||
organizationHomepage := Some(url("http://www.indix.com")), | |||
scalaVersion := "2.11.11", | |||
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"), | |||
javacOptions ++= Seq("-Xlint:deprecation", "-source", "1.7"), | |||
javacOptions ++= Seq("-Xlint:deprecation", "-source", "1.8"), |
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.
Do we need to enforce 1.8? Scala 2.11 can work with 1.6. Forcing this to 1.8 might break compatibility with Scala 2.11 assumption. Unless we're using Lamdas' and Streams API introduced in JDK8.
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.
We are using lambdas in the gocd-util module. So, I put that in common settings. Should I make it module specific only?
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.
Ah Okay, see the above message on moving to Scala. If we decide to do that this comment becomes redundant.
Should ideal be a |
@ashwanthkumar We did not want to write these plugins in Scala because the jar became bloated, right? Why are now considering moving back to Scala? I'm guessing, we should be able to just package and deploy a java module from this repo and use that across all gocd plugins that we may develop. Thoughts? |
No description provided.