Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from eed3si9n/wip/pluginrename
Rename plugin and publish setting
- Loading branch information
Showing
9 changed files
with
118 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,40 @@ | ||
### new management and Apache v2 | ||
|
||
This is the first release since the development is passed on to | ||
[foundweekends][fw] project. | ||
|
||
- We've relicensed Giter8 under Apache v2 license after contacting | ||
previous contributors and getting their approvals. [#194][194] | ||
- Organization name is changed to `org.foundweekends.giter8`. | ||
- The sbt plugin was renamed to `sbt-giter8` and `sbt-giter8-scaffold`. | ||
- Created Pamflet [documentation][docs]. | ||
|
||
### bug fixes and improvements | ||
|
||
- Better error handling when templates do not compile. [#193][193] by [@njlg][@njlg] | ||
- Support git URLs that start with `ssh://`. [#192][192] by [@njlg][@njlg] | ||
- Fixes sbt-giter8 not expanding dynamic default properties. [#165][165] by [@sattvik][@sattvik] | ||
- `ls(..)` properties is dropped. [#201][201] by [@eed3si9n][@eed3si9n] | ||
|
||
### root layout | ||
|
||
giter8 0.7.0 introduces an experimental layout called *root layout*. | ||
When giter8 does not find `src/main/g8`, it will simply use the root directory | ||
Giter8 0.7.0 introduces an experimental layout called *root layout*. | ||
When Giter8 does not find `src/main/g8`, it will simply use the root directory | ||
of the specified Git repository as the template directory. | ||
|
||
The `default.properties` file can be placed either at the root directory | ||
or in `project` directory. | ||
Since you can no longer include template fields in the files | ||
under `project` its application is very limited. | ||
under `project` its application is very limited. [#202][202] by [@eed3si9n][@eed3si9n] | ||
|
||
[fw]: http://www.foundweekends.org/ | ||
[docs]: http://www.foundweekends.org/giter8/ | ||
[165]: https://github.com/foundweekends/giter8/pull/165 | ||
[192]: https://github.com/foundweekends/giter8/pull/192 | ||
[193]: https://github.com/foundweekends/giter8/pull/193 | ||
[201]: https://github.com/foundweekends/giter8/pull/201 | ||
[202]: https://github.com/foundweekends/giter8/pull/202 | ||
[194]: https://github.com/foundweekends/giter8/issues/194 | ||
[@njlg]: https://github.com/njlg | ||
[@eed3si9n]: https://github.com/eed3si9n | ||
[@sattvik]: https://github.com/sattvik |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[giter8][g8] is a command line tool to apply templates defined in any git repository | ||
[Giter8][g8] is a command line tool to apply templates defined in any git repository | ||
|
||
[g8]: http://github.com/foundweekends/giter8#readme | ||
[g8]: http://www.foundweekends.org/giter8/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Originally by: Lightbend, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import sbt._ | ||
import sbt.Keys._ | ||
import bintray.{ BintrayKeys, BintrayPlugin } | ||
|
||
/** | ||
* Publish to private bintray repository. | ||
*/ | ||
object BintrayPublish extends AutoPlugin { | ||
override def trigger = allRequirements | ||
override def requires = plugins.JvmPlugin && BintrayPlugin | ||
|
||
override def buildSettings = Seq( | ||
BintrayKeys.bintrayOrganization := Some("sbt"), | ||
BintrayKeys.bintrayReleaseOnPublish := false | ||
) | ||
|
||
override def projectSettings = Seq( | ||
BintrayKeys.bintrayRepository := "sbt-plugin-releases", | ||
BintrayKeys.bintrayPackage := "sbt-giter8", | ||
pomIncludeRepository := { _ => false } | ||
) | ||
} | ||
|
||
/** | ||
* Publish to private bintray repository. | ||
*/ | ||
object SonatypePublish extends AutoPlugin { | ||
override def requires = plugins.JvmPlugin | ||
|
||
override def projectSettings = Seq( | ||
publishTo := { | ||
val nexus = "https://oss.sonatype.org/" | ||
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
) | ||
} | ||
|
||
/** | ||
* For projects that are not published. | ||
*/ | ||
object NoPublish extends AutoPlugin { | ||
override def requires = plugins.JvmPlugin && BintrayPublish | ||
|
||
override def projectSettings = Seq( | ||
publishArtifact := false, | ||
publish := (), | ||
publishLocal := () | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("org.foundweekends.giter8" % "giter8-scaffold" % System.getProperty("plugin.version")) | ||
addSbtPlugin("org.foundweekends.giter8" % "sbt-giter8-scaffold" % System.getProperty("plugin.version")) |