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

assembly-src task (a merged sources artifact) #67

Closed
stephenh opened this issue Jan 16, 2013 · 1 comment
Closed

assembly-src task (a merged sources artifact) #67

stephenh opened this issue Jan 16, 2013 · 1 comment

Comments

@stephenh
Copy link

@stephenh wrote:

I'm uploading an assembled artifact to our internal Maven repo, and would like to include a -sources.jar that was the merged sources of the main project + the dependencies that end up in the assembly jar.

assembly-src would be analogous to package-src as assembly is to package, except Scala library source should not be included by default. Likely it would expand AssemblyOption, which currently works like this:

    assemblyOption in assembly <<= (assembleArtifact in packageBin,
        assembleArtifact in packageScala, assembleArtifact in packageDependency, excludedFiles in assembly) {
      (includeBin, includeScala, includeDeps, exclude) =>   
      AssemblyOption(includeBin, includeScala, includeDeps, exclude) 
    },
    assemblyOption in packageDependency <<= (assemblyOption in assembly) { opt =>
      opt.copy(includeBin = false, includeScala = true, includeDependency = true)
    },
    assemblyOption in packageScala <<= (assemblyOption in assembly) { opt =>
      opt.copy(includeBin = false, includeScala = true, includeDependency = false)
    },

The build user should be able to control the default assembly behavior by setting:

assembleArtifact in packageSource := true

assembleArtifact in packageDependencySource := true

In other words, assemblySource would be a specialized version of assemblyOption:

    assemblyOption in assemblySource <<= (assemblyOption in assembly) { opt =>
      opt.copy(includeBin = false, includeScala = false, includeDependency = false,
        includeSource = true, includeDependencySource = true)
    },
@eed3si9n
Copy link
Member

eed3si9n commented Mar 3, 2014

I'm not seeing any movement on this, so I'm closing this for now.

@eed3si9n eed3si9n closed this as completed Mar 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants