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

move utils module here from gocd-s3-artifacts plugin #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rucha3
Copy link
Contributor

@rucha3 rucha3 commented Dec 26, 2018

No description provided.

Copy link
Member

@ashwanthkumar ashwanthkumar left a 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"),
Copy link
Member

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.

Copy link
Contributor Author

@rucha3 rucha3 Dec 26, 2018

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?

Copy link
Member

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.

@manojlds
Copy link
Member

Should ideal be a git filter-branch move no? Ok to lose the history?

@brewkode
Copy link
Contributor

brewkode commented Jan 2, 2019

@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?

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.

4 participants