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

Ability to choose license type via license argument has been added. #20

Merged
merged 3 commits into from
Jul 3, 2016

Conversation

strobe
Copy link
Contributor

@strobe strobe commented Apr 14, 2016

See updates at README for details.

Default choose still an Apache license.

This implementation depends on snapshot version of sbt-header plugin (commit hash: 7045c0afc1724106b83766d3ae3ce31a5ef18acd), which is published to Bintray by me.
Therefore it's looks like we have to wait till next release of sbt-header before do merge,
but I think is great to have some extra time to review this PR.

Thanks.

@@ -349,22 +226,7 @@ private object Template {
def `package`(packageSegments: Vector[String], author: String): String = {
val superPackage = packageSegments.init.mkString(".")
val lastSegment = packageSegments.last
s"""|/*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Header part has been removed from Template because sbt-header anyway will add it to final project at first compilation.

@@ -20,7 +20,7 @@ import java.nio.charset.StandardCharsets.UTF_8
import java.nio.file.{ Files, Path }
import org.eclipse.jgit.api.Git

private class Fresh(buildDir: Path, organization: String, name: String, author: String) {
private class Fresh(buildDir: Path, organization: String, name: String, author: String, licenseKind: String) {
Copy link
Member

Choose a reason for hiding this comment

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

Rename license.

@hseeberger
Copy link
Member

Nice! Just a few comments wrt code style.

@strobe
Copy link
Contributor Author

strobe commented Apr 15, 2016

Thanks for review - I will fix that.

@strobe
Copy link
Contributor Author

strobe commented Jul 1, 2016

@hseeberger
please, take a look it again - I've updated this PR to sbt-header 1.6.0, therefore it would be merged if no any issues here

@hseeberger hseeberger merged commit e98b20d into sbt:master Jul 3, 2016
@hseeberger
Copy link
Member

Thanks, @strobe!

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.

None yet

2 participants