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

First refactoring to provide multiple debian packaging strategies #284

Merged
merged 2 commits into from
Jul 7, 2014

Conversation

muuki88
Copy link
Contributor

@muuki88 muuki88 commented Jun 25, 2014

This is the first refactoring step to provide an additional java-based debian packaging implementation.
Does this look okay from the coding side? @jsuereth , @kardapoltsev , @aparkinson ?

I basically introduced two new task debianJDebPackaging and debianNativePackaging.
You set the packaging strategy with packageBin in Debian <<= debianJDebPackaging in Debian.

@muuki88 muuki88 added this to the 0.8.0 - windows services milestone Jun 27, 2014
muuki88 referenced this pull request in laguiz/sbt-native-packager Jun 30, 2014
It's far from being ready for a pull request
I have some questions that you may discover in the code itself
libraryDependencies += "org.apache.commons" % "commons-compress" % "1.4.1"
libraryDependencies ++= Seq(
"org.apache.commons" % "commons-compress" % "1.4.1",
"org.vafer" % "jdeb" % "1.2" artifacts (Artifact("jdeb", "jar", "jar"))
Copy link
Member

Choose a reason for hiding this comment

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

Ah nice, I had been watching this guy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are using the jdeb library at our company without any problems. The
artifacts (Artifact("jdeb","jar","jar")) part was the hardest to get :P

@jsuereth
Copy link
Member

jsuereth commented Jul 6, 2014

WOW, besides architectural concerns with CAKE, this LGTM!! Great work.

@muuki88
Copy link
Contributor Author

muuki88 commented Jul 6, 2014

Thanks Josh :) What are the alternatives to the current cake-pattern? I tried to build it like the rest of the plugin. We can create objects defining the tasks, which will definitely reduce the amount of tasks and settings (hopefully).

@jsuereth
Copy link
Member

jsuereth commented Jul 6, 2014

@muuki88 Yeah, the alternative is to just put things in objects and then import.

The ugly part there is the Keys. For the users we want ALL keys to be in one object they can import, so we'd possibly have some uglyness with all our Keys in one "god" object.

Your code is fine as is, and can be merged. I was just curious what your feelings were on the cake. We're almost at the breaking point where it gets to be more confusing than helpful in terms of partitioning functionality :)

If you're still ok (and this PR looks great) feel free to merge.

@muuki88
Copy link
Contributor Author

muuki88 commented Jul 7, 2014

Exactly @jsuereth ! The decomposition (no matter which pattern) just works for the settings/tasks :( The keys always stay in a single, well yeah "god", object. The cake pattern was fine, I just couldn't thought of a solution for the keys. So for me the cake pattern is fine, as long as it's used not too much.

I advised @laguiz to use it as well for his windows-service pr. So we'll get more cake :)

muuki88 added a commit that referenced this pull request Jul 7, 2014
First refactoring to provide multiple debian packaging strategies
@muuki88 muuki88 merged commit 830cac4 into master Jul 7, 2014
@muuki88 muuki88 deleted the wip/jdeb branch July 7, 2014 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants