Skip to content

Commit eb1fde7

Browse files
committed
Update for GitBucket 3.11
1 parent 69442f5 commit eb1fde7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
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+
3.11.x | 3.11.x
78
3.10.x | 3.10.x
89
3.7.x | 3.7.x, 3.8.x, 3.9.x
910
3.6.x | 3.6.x

project/build.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object MyBuild extends Build {
77

88
val Organization = "jp.sf.amateras"
99
val Name = "gitbucket-gist-plugin"
10-
val Version = "3.10.0"
10+
val Version = "3.11.0"
1111
val ScalaVersion = "2.11.6"
1212

1313
lazy val project = Project (
@@ -22,10 +22,11 @@ object MyBuild extends Build {
2222
scalaVersion := ScalaVersion,
2323
scalacOptions := Seq("-deprecation", "-language:postfixOps"),
2424
resolvers ++= Seq(
25-
"amateras-repo" at "http://amateras.sourceforge.jp/mvn/"
25+
"amateras-repo" at "http://amateras.sourceforge.jp/mvn/",
26+
"amateras-repo" at "http://amateras.sourceforge.jp/mvn-snapshot/"
2627
),
2728
libraryDependencies ++= Seq(
28-
"gitbucket" % "gitbucket-assembly" % "3.10.0" % "provided",
29+
"gitbucket" % "gitbucket-assembly" % "3.11.0-SNAPSHOT" % "provided",
2930
"com.typesafe.play" %% "twirl-compiler" % "1.0.4" % "provided",
3031
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
3132
),

src/main/scala/gitbucket/gist/controller/GistController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package gitbucket.gist.controller
22

33
import java.io.File
44
import gitbucket.core.view.helpers
5-
import jp.sf.amateras.scalatra.forms._
5+
import io.github.gitbucket.scalatra.forms._
66

77
import gitbucket.core.controller.ControllerBase
88
import gitbucket.core.service.AccountService

src/main/scala/gitbucket/gist/util/GistUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ object GistUtils {
3333
Constants.HEAD, loginAccount.fullName, loginAccount.mailAddress, message)
3434

3535
inserter.flush()
36-
inserter.release()
36+
inserter.close()
3737

3838
commitId
3939
}

0 commit comments

Comments
 (0)