Skip to content

Commit 02e314f

Browse files
committed
Bump to GitBucket 4.10 which supports Scala 2.12
1 parent 012f3ec commit 02e314f

13 files changed

+17
-21
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This is an example of GitBucket plug-in. This plug-in provides code snippet repo
44

55
Plugin version | GitBucket version
66
:--------------|:--------------------
7+
4.6.x | 4.10.x
78
4.5.x | 4.9.x
89
4.4.x | 4.8.x
910
4.2.x, 4.3.x | 4.2.x, 4.3.x, 4.4.x, 4.5.x, 4.6.x, 4.7.x

Diff for: build.sbt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
val Organization = "io.github.gitbucket"
22
val ProjectName = "gitbucket-gist-plugin"
3-
val ProjectVersion = "4.5.0"
3+
val ProjectVersion = "4.6.0"
44

55
lazy val root = (project in file(".")).enablePlugins(SbtTwirl)
66

77
organization := Organization
88
name := ProjectName
99
version := ProjectVersion
10-
scalaVersion := "2.11.8"
10+
scalaVersion := "2.12.1"
1111

1212
libraryDependencies ++= Seq(
13-
"io.github.gitbucket" %% "gitbucket" % "4.9.0" % "provided",
14-
"com.typesafe.play" %% "twirl-compiler" % "1.0.4" % "provided",
15-
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
13+
"io.github.gitbucket" %% "gitbucket" % "4.10.0" % "provided",
14+
"com.typesafe.play" %% "twirl-compiler" % "1.3.0" % "provided",
15+
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
1616
)
1717

18-
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps", "-Ybackend:GenBCode", "-Ydelambdafy:method", "-target:jvm-1.8")
18+
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps", "-Ydelambdafy:method", "-target:jvm-1.8")
1919
javacOptions in compile ++= Seq("-target", "8", "-source", "8")

Diff for: install-local.sh

-3
This file was deleted.

Diff for: project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 0.13.9
1+
sbt.version = 0.13.13

Diff for: project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
logLevel := Level.Warn
22

3-
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.0.4")
3+
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.3.0")

Diff for: sbt-launch-0.13.9.jar

-1.15 MB
Binary file not shown.

Diff for: sbt.bat

-2
This file was deleted.

Diff for: sbt.sh

-2
This file was deleted.

Diff for: src/main/scala/gitbucket/gist/controller/GistController.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,12 @@ trait GistControllerBase extends ControllerBase {
273273
}
274274

275275
get("/gist/_new")(usersOnly {
276-
html.edit(None, Seq(("", JGitUtil.ContentInfo("text", None, Some("UTF-8")))))
276+
html.edit(None, Seq(("", JGitUtil.ContentInfo("text", None, None, Some("UTF-8")))))
277277
})
278278

279279
get("/gist/_add"){
280280
val count = params("count").toInt
281-
html.editor(count, "", JGitUtil.ContentInfo("text", None, Some("UTF-8")))
281+
html.editor(count, "", JGitUtil.ContentInfo("text", None, None, Some("UTF-8")))
282282
}
283283

284284
////////////////////////////////////////////////////////////////////////////////

Diff for: src/main/scala/gitbucket/gist/model/Gist.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package gitbucket.gist.model
22

33
trait GistComponent { self: gitbucket.core.model.Profile =>
4-
import profile.simple._
4+
import profile.api._
55
import self._
66

77
lazy val Gists = TableQuery[Gists]

Diff for: src/main/scala/gitbucket/gist/model/GistComment.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package gitbucket.gist.model
22

33
trait GistCommentComponent { self: gitbucket.core.model.Profile =>
4-
import profile.simple._
4+
import profile.api._
55
import self._
66

77
lazy val GistComments = new TableQuery(tag => new GistComments(tag)){

Diff for: src/main/scala/gitbucket/gist/service/GistCommentService.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ package gitbucket.gist.service
33
import scala.language.reflectiveCalls
44
import gitbucket.gist.model.GistComment
55
import gitbucket.gist.model.Profile._
6-
import profile.simple._
6+
import gitbucket.gist.model.Profile.profile.blockingApi._
7+
import gitbucket.gist.model.Profile.dateColumnType
78

89
trait GistCommentService {
910

Diff for: src/main/scala/gitbucket/gist/service/GistService.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import gitbucket.core.model.Account
44
import gitbucket.gist.model.Gist
55
import gitbucket.gist.model.Mode
66
import gitbucket.gist.model.Profile._
7-
import profile.simple._
7+
import gitbucket.gist.model.Profile.profile.blockingApi._
8+
import gitbucket.gist.model.Profile.dateColumnType
89

910
trait GistService {
1011

0 commit comments

Comments
 (0)