Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: false
language: scala
jdk:
- oraclejdk8
- openjdk8
cache:
directories:
- "$HOME/.ivy2"
Expand Down
4 changes: 4 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ On success, you will receive a `HTTP 200` answer with a body containing `done: F

Plugin version | GitBucket version
:--------------|:-----------------
1.8.x | >= 4.32.y
1.7.x | >= 4.26.y
1.6.x | >= 4.21.y
1.5.x | >= 4.16.y
Expand All @@ -67,6 +68,9 @@ sbt clean assembly

## Release Notes

### 1.8.0
- compatibility with GitBucket 4.32.x and Scala 2.13

### 1.7.0
- Bump sbt-gitbucket-plugin to 1.3.0 to be hosted by the [plugin registry](https://plugins.gitbucket-community.org/)

Expand Down
7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
organization := "fr.brouillard.gitbucket"
name := "gitbucket-h2-backup-plugin"
version := "1.7.0"
scalaVersion := "2.12.6"
gitbucketVersion := "4.26.0"
version := "1.8.0"
scalaVersion := "2.13.0"
gitbucketVersion := "4.32.0"
scalacOptions += "-deprecation"
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.1.6
sbt.version = 1.2.8
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
logLevel := Level.Warn
addSbtPlugin("io.github.gitbucket" % "sbt-gitbucket-plugin" % "1.3.0")
addSbtPlugin("io.github.gitbucket" % "sbt-gitbucket-plugin" % "1.5.0")
3 changes: 2 additions & 1 deletion src/main/scala/Plugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Plugin extends gitbucket.core.plugin.Plugin {
new Version("1.5.0"),
new Version("1.5.1"),
new Version("1.6.0"),
new Version("1.7.0"))
new Version("1.7.0"),
new Version("1.8.0"))

override val systemSettingMenus: Seq[(Context) => Option[Link]] = Seq(
(ctx: Context) => Some(Link("h2-backup", "H2 Backup", "admin/h2backup"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class H2BackupController extends ControllerBase with AdminAuthenticator {
post("/database/backup", backupForm) { form: BackupForm =>
exportDatabase(new File(form.destFile))
val msg: String = "H2 Database has been exported to '" + form.destFile + "'."
flash += "info" -> msg
flash += "dest" -> form.destFile
flash.update("info", msg)
flash.update("dest", form.destFile)
redirect("/admin/h2backup")
}

Expand Down