Skip to content

Commit c6004a6

Browse files
committed
add scalacOptions
1 parent 1270571 commit c6004a6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.sbt

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ organization := "io.github.gitbucket"
33
version := "1.0.0"
44
scalaVersion := "2.13.12"
55
gitbucketVersion := "4.40.0"
6+
scalacOptions ++= Seq(
7+
"-deprecation",
8+
"-Xsource:3",
9+
)

src/main/scala/Plugin.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import gitbucket.core.controller.ControllerBase
12
import io.github.gitbucket.helloworld.controller.HelloWorldController
23
import io.github.gitbucket.solidbase.model.Version
34

@@ -7,7 +8,7 @@ class Plugin extends gitbucket.core.plugin.Plugin {
78
override val description: String = "First example of GitBucket plug-in"
89
override val versions: List[Version] = List(new Version("1.0.0"))
910

10-
override val controllers = Seq(
11+
override val controllers: Seq[(String, ControllerBase)] = Seq(
1112
"/*" -> new HelloWorldController()
1213
)
1314
}

0 commit comments

Comments
 (0)