Skip to content

Commit

Permalink
add code
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Sep 6, 2019
1 parent b920ae4 commit e4977ec
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: scala
jdk: openjdk8
dist: xenial
script:
- sbt scripted
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enablePlugins(SbtPlugin)

organization := "com.example"

name := "example-plugin"

scriptedBufferLog := false
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.3.0
9 changes: 9 additions & 0 deletions src/main/scala/example/ExamplePlugin.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example

import sbt._, Keys._

object ExamplePlugin extends AutoPlugin {
object autoImport {
val foo = settingKey[File]("")
}
}
3 changes: 3 additions & 0 deletions src/sbt-test/a/b/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
enablePlugins(ExamplePlugin)

foo := file("bar")
1 change: 1 addition & 0 deletions src/sbt-test/a/b/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.2.8
1 change: 1 addition & 0 deletions src/sbt-test/a/b/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.example" % "example-plugin" % "0.1.0-SNAPSHOT")
1 change: 1 addition & 0 deletions src/sbt-test/a/b/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> compile

0 comments on commit e4977ec

Please sign in to comment.