Skip to content

Commit 72a1e17

Browse files
authored
Merge pull request #17 from SIkebe/gitbucket-4.32.0
Bump to GitBucket 4.32, sbt-gitbucket-plugin 1.5.0 and Scala 2.13.0
2 parents ec89a06 + 8ca65b8 commit 72a1e17

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: scala
22
scala:
3-
- 2.12.1
3+
- 2.13.0
44
jdk:
5-
- oraclejdk8
5+
- openjdk8
66
env:
77
- TRAVIS_NODE_VERSION="4"
88
install:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Download jar file from [the release page](https://github.com/mrkm4ntr/gitbucket-
1212

1313
Plugin version|GitBucket version
1414
:---|:---
15+
1.7|4.32.x
1516
1.6.x|4.26.x
1617
1.5|4.19.x
1718
1.4|4.11.x

build.sbt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@ lazy val root = (project in file(".")).enablePlugins(SbtTwirl)
77
organization := Organization
88
name := Name
99
version := Version
10-
scalaVersion := "2.12.4"
10+
scalaVersion := "2.13.0"
11+
gitbucketVersion := "4.32.0"
1112

1213
resolvers ++= Seq(
1314
Resolver.jcenterRepo
1415
)
1516

16-
libraryDependencies ++= Seq(
17-
"io.github.gitbucket" %% "gitbucket" % "4.19.0" % "provided",
18-
"com.typesafe.play" %% "twirl-compiler" % "1.3.0" % "provided",
19-
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
20-
)
21-
2217
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps")

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 0.13.13
1+
sbt.version = 1.2.8

project/plugins.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
logLevel := Level.Warn
22

3-
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.3.0")
3+
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.4.2")
4+
addSbtPlugin("io.github.gitbucket" % "sbt-gitbucket-plugin" % "1.5.0")

src/main/scala/mrkm4ntr/gitbucket/network/controller/NetworkController.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import org.eclipse.jgit.revwalk.RevSort
1919

2020
import org.json4s.jackson.Serialization
2121
import scala.annotation.tailrec
22-
import scala.collection.JavaConverters._
22+
import scala.jdk.CollectionConverters._
23+
import scala.util.Using
2324

2425
class NetworkController extends NetworkControllerBase
2526
with RepositoryService with AccountService with ReferrerAuthenticator with RequestCache
@@ -34,7 +35,7 @@ trait NetworkControllerBase extends ControllerBase {
3435
get("/:owner/:repository/network/commits") {
3536
contentType = formats("json")
3637
referrersOnly { repository =>
37-
using(Git.open(getRepositoryDir(repository.owner, repository.name))) { git =>
38+
Using.resource(Git.open(getRepositoryDir(repository.owner, repository.name))) { git =>
3839

3940
@tailrec
4041
def traverse(plotCommitList: List[(PlotCommit[PlotLane], Int)],

0 commit comments

Comments
 (0)