Skip to content

Commit 278b87b

Browse files
authored
Merge pull request #14 from gitbucket-plugins/scala-2.13.0
Bump to Scala 2.13.0
2 parents 93d6217 + 4a02549 commit 278b87b

File tree

7 files changed

+15
-9
lines changed

7 files changed

+15
-9
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Version
1010

1111
Plugin version|GitBucket version
1212
:-------------|:----------------
13+
7.0.x |4.32+
1314
6.1.x |4.26+
1415
6.0.x |4.23+
1516
5.0.x |4.21+
@@ -21,7 +22,7 @@ Plugin version|GitBucket version
2122
Download
2223
---
2324

24-
You can download the JAR file from the [plugin registry](https://plugins.gitbucket-community.org/releases/gitbucket-explorer-plugin).
25+
You can download the JAR file from the [Release](https://github.com/tomoki1207/gitbucket-explorer-plugin/releases) page.
2526

2627
Installation
2728
---
@@ -38,6 +39,9 @@ See `package.json` for more details.
3839

3940
Releases
4041
---
42+
### 7.0.0 - 7 Aug 2019
43+
- Bump to GitBucket 4.32.0 and Scala 2.13.0
44+
4145
### 6.1.0 - 1 Jul 2018
4246
- Bump sbt-gitbucket-plugin to 1.3.0 to be hosted by the [plugin registry](https://plugins.gitbucket-community.org/)
4347

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
organization := "io.github.gitbucket"
22
name := "gitbucket-explorer-plugin"
3-
version := "6.1.0"
4-
scalaVersion := "2.12.0"
5-
gitbucketVersion := "4.26.0"
3+
version := "7.0.0"
4+
scalaVersion := "2.13.0"
5+
gitbucketVersion := "4.32.0"
66

77
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps")
88
javacOptions in compile ++= Seq("-target", "8", "-source", "8")

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"build": "browserify -t babelify ./scripts/index.js -o ./src/main/resources/explorer/assets/bundle.js && sbt assembly",
99
"watch": "watchify -t babelify ./scripts/index.js -o ./src/main/resources/explorer/assets/bundle.js",
10-
"release": "set NODE_ENV=production && browserify ./scripts/index.js -t babelify -t envify | uglifyjs -c warnings=false > ./src/main/resources/explorer/assets/bundle.js && sbt clean assembly"
10+
"release": "set NODE_ENV=production && browserify ./scripts/index.js -t babelify -t envify | uglifyjs > ./src/main/resources/explorer/assets/bundle.js && sbt clean assembly"
1111
},
1212
"author": "tomoki1207",
1313
"license": "MIT",

project/build.properties

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

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
logLevel := Level.Warn
2-
addSbtPlugin("io.github.gitbucket" % "sbt-gitbucket-plugin" % "1.3.0")
2+
addSbtPlugin("io.github.gitbucket" % "sbt-gitbucket-plugin" % "1.5.0")

src/main/scala/Plugin.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class Plugin extends gitbucket.core.plugin.Plugin {
2222
new Version("4.0.0"),
2323
new Version("5.0.0"),
2424
new Version("6.0.0"),
25-
new Version("6.1.0")
25+
new Version("6.1.0"),
26+
new Version("7.0.0")
2627
)
2728

2829
override val controllers = Seq(

src/main/scala/io/github/gitbucket/explorer/controllers/ExplorerController.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import gitbucket.core.util.SyntaxSugars._
99
import gitbucket.core.util.Directory._
1010
import org.eclipse.jgit.api.Git
1111
import gitbucket.core.view.helpers
12+
import scala.util.Using
1213

1314
/**
1415
* Created by t_maruyama on 2017/01/31.
@@ -32,7 +33,7 @@ trait ExplorerControllerBase extends ControllerBase {
3233
})
3334

3435
private def explore(repository: RepositoryService.RepositoryInfo, rev: String, path: String): Option[List[FileNode]] = {
35-
using(Git.open(getRepositoryDir(repository.owner, repository.name))){ git =>
36+
Using.resource(Git.open(getRepositoryDir(repository.owner, repository.name))){ git =>
3637
if(!JGitUtil.isEmpty(git)) {
3738
JGitUtil.getDefaultBranch(git, repository, rev).map {
3839
case (objectId, revision) => defining(JGitUtil.getRevCommitFromId(git, objectId)) { _ =>

0 commit comments

Comments
 (0)