-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
@@ -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"""|/* |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename license
.
Nice! Just a few comments wrt code style. |
Thanks for review - I will fix that. |
@hseeberger |
Thanks, @strobe! |
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.