Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to sbt 1.0, cross-publishing to 0.13/1.0, dynamic versioning, …
…auto-publishing, documentation
- Loading branch information
Showing
5 changed files
with
65 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
language: scala | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
script: | ||
## runs both regular tests and sbt-scripted integration tests | ||
- sbt -Dfile.encoding=UTF8 test scripted | ||
|
||
after_success: | ||
- '[[ $TRAVIS_BRANCH == "master" ]] || [[ $TRAVIS_BRANCH =~ ^v[0-9.]+$ ]] && sbt "+ publish"' | ||
|
||
sudo: false | ||
|
||
# https://docs.travis-ci.com/user/languages/java/ | ||
addons: | ||
apt: | ||
packages: | ||
- oracle-java8-installer | ||
|
||
before_cache: | ||
# Tricks to avoid unnecessary cache updates | ||
- find $HOME/.sbt -name "*.lock" | xargs rm | ||
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm | ||
|
||
# These directories are cached to S3 at the end of the build | ||
cache: | ||
directories: | ||
- $HOME/.ivy2/cache | ||
- $HOME/.sbt/boot/ | ||
|
||
env: | ||
global: | ||
- BINTRAY_USER=jastice | ||
- secure: "BGRgYWxQ6lvDXteksH8vG8c2xa6rGixDJXUqVIW9W0IkzuFH1nMfMRwpniEf3T6YAhCeq6786xNavSYusR0fkSpLC4fbPRrsLfT4OhV25CdRgv/ngrRO1eKI3LgHxC0Qjjrpnn4pE1P0T/kyRMve9xqjzpvNkgCnF2d+p0p71PQ=" |
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,21 +1,11 @@ | ||
import bintray.Keys._ | ||
sbtPlugin := true | ||
name := "sbt-ide-settings" | ||
organization := "org.jetbrains" | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")) | ||
|
||
val commonSettings = Seq( | ||
sbtPlugin := true, | ||
name := "sbt-ide-settings", | ||
organization := "org.jetbrains", | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
scalaVersion := "2.10.4" | ||
) | ||
crossSbtVersions := Seq("0.13.16", "1.0.0") | ||
|
||
val publishSettings = bintrayPublishSettings ++ Seq( | ||
publishMavenStyle := false, | ||
repository in bintray := "sbt-plugins", | ||
bintrayOrganization in bintray := Some("jetbrains") | ||
) | ||
publishMavenStyle := false | ||
|
||
val gitSettings = versionWithGit ++ Seq( | ||
git.baseVersion := "0.0" | ||
) | ||
|
||
commonSettings ++ publishSettings ++ gitSettings | ||
bintrayRepository := "sbt-plugins" | ||
bintrayOrganization := Some("jetbrains") |
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 @@ | ||
sbt.version = 0.13.5 | ||
sbt.version = 1.0.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,10 +1,4 @@ | ||
resolvers += Resolver.url( | ||
"bintray-sbt-plugin-releases", | ||
url("https://dl.bintray.com/content/sbt/sbt-plugin-releases"))( | ||
Resolver.ivyStylePatterns) | ||
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value | ||
|
||
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.1.2") | ||
|
||
resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven" | ||
|
||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.6.4") | ||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "2.0.0") | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1") |