-
Notifications
You must be signed in to change notification settings - Fork 28
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 #24 from 2m/wip-auto-release-2m
Update readme and prepare for release by Travis
- Loading branch information
Showing
13 changed files
with
72 additions
and
232 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,38 +1,44 @@ | ||
/* | ||
* Copyright 2016 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 com.typesafe.sbt.SbtScalariform.ScalariformKeys | ||
import scalariform.formatter.preferences._ | ||
|
||
lazy val sbtJavaFormatter = project | ||
.in(file(".")) | ||
.aggregate(plugin) | ||
.enablePlugins(NoPublish) | ||
.settings(skip in publish := true) | ||
|
||
lazy val plugin = project | ||
.in(file("plugin")) | ||
.settings( | ||
organization := "com.lightbend.sbt", | ||
name := "sbt-java-formatter", | ||
sbtPlugin := true, | ||
libraryDependencies ++= Seq( | ||
"com.google.googlejavaformat" % "google-java-format" % "1.6" | ||
) | ||
), | ||
|
||
organizationName := "Lightbend Inc.", | ||
startYear := Some(2015), | ||
description := "Formats Java code in your project.", | ||
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")), | ||
|
||
bintrayRepository := "sbt-plugins", | ||
bintrayOrganization := None, | ||
|
||
scalacOptions ++= Seq("-encoding", "UTF-8", "-target:jvm-1.6", "-unchecked", "-deprecation", "-feature"), | ||
javacOptions ++= Seq("-encoding", "UTF-8", "-source", "1.6", "-target", "1.6"), | ||
|
||
ScalariformKeys.preferences := ScalariformKeys.preferences.value | ||
.setPreference(AlignSingleLineCaseStatements, true) | ||
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100) | ||
.setPreference(DoubleIndentClassDeclaration, true) | ||
.setPreference(DanglingCloseParenthesis, Preserve) | ||
.setPreference(AlignParameters, true), | ||
) | ||
.settings(BintrayPlugin.bintrayPublishSettings: _*) | ||
.settings( | ||
ScriptedPlugin.projectSettings, | ||
scriptedLaunchOpts := { scriptedLaunchOpts.value ++ | ||
Seq("-Xmx1024M", "-Dplugin.version=" + version.value) | ||
}, | ||
scriptedBufferLog := false | ||
) | ||
.enablePlugins(AutomateHeaderPlugin) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 +1,7 @@ | ||
/* | ||
* Copyright 2016 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. | ||
*/ | ||
|
||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0-M1") | ||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6") | ||
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.0") | ||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.1") | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1") | ||
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.0") | ||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.0.0") | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4") | ||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "3.0.0") | ||
|
||
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value | ||
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.