Skip to content

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