Skip to content

Commit a65821f

Browse files
committed
version 1.6.0, compatibility with gitbucket 4.10
switch to scala 2.12, blocking-slick 0.0.7 fixes #13
1 parent 31a1d2f commit a65821f

File tree

9 files changed

+29
-38
lines changed

9 files changed

+29
-38
lines changed

README.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ It is then possible, for example, to notify every user that an upgrade of the sy
1616

1717
Plugin version | GitBucket version
1818
:--------------|:-----------------
19+
1.6.x | 4.10.y
1920
1.5.x | 4.3.y
2021
1.4.x | 4.0.0 -> 4.2.x
2122
1.3.x | 3.11.x, 3.12.x
@@ -33,6 +34,9 @@ Plugin version | GitBucket version
3334

3435
## Release Notes
3536

37+
### 1.6.0
38+
- [issue-13](https://github.com/gitbucket-plugins/gitbucket-announce-plugin/issues/13) update to gitbucket 4.10
39+
3640
### 1.5.0
3741
- [issue-12](https://github.com/gitbucket-plugins/gitbucket-announce-plugin/issues/12) adapt to new gitbucket version handling
3842

build.sbt

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
val Organization = "fr.brouillard.gitbucket"
22
val ProjectName = "gitbucket-announce-plugin"
3-
val ProjectVersion = "1.5.0"
3+
val ProjectVersion = "1.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"
11-
12-
resolvers ++= Seq(
13-
Classpaths.typesafeReleases,
14-
"central" at "http://repo.maven.apache.org/maven2/",
15-
"amateras" at "http://amateras.sourceforge.jp/mvn/"
16-
)
10+
scalaVersion := "2.12.1"
1711

1812
libraryDependencies ++= Seq(
19-
"io.github.gitbucket" %% "gitbucket" % "4.3.0" % "provided",
20-
"io.github.gitbucket" % "solidbase" % "1.0.0" % "provided",
21-
"com.typesafe.play" %% "twirl-compiler" % "1.0.4" % "provided",
22-
"org.apache.commons" % "commons-email" % "1.4" % "provided",
23-
"com.sun.mail" % "javax.mail" % "1.5.2" % "provided",
24-
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
13+
"io.github.gitbucket" %% "gitbucket" % "4.10.0" % "provided",
14+
"io.github.gitbucket" % "solidbase" % "1.0.0" % "provided",
15+
"com.typesafe.play" %% "twirl-compiler" % "1.3.0" % "provided",
16+
"org.apache.commons" % "commons-email" % "1.4" % "provided",
17+
"com.sun.mail" % "javax.mail" % "1.5.2" % "provided",
18+
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
2519
)
2620

27-
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps")
28-
javacOptions in compile ++= Seq("-target", "7", "-source", "7")
21+
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps", "-Ydelambdafy:method", "-target:jvm-1.8")
22+
javacOptions in compile ++= Seq("-target", "7", "-source", "7")
23+
24+
useJCenter := true

project/build.properties

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

project/plugins.sbt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
2-
3-
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.0.4")
4-
5-
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
6-
1+
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.3.0")
1.15 MB
Binary file not shown.

sbt.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
set SCRIPT_DIR=%~dp0
2-
java -Dsbt.log.noformat=true -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M -jar "%SCRIPT_DIR%\sbt-launch-0.13.9.jar" %*
2+
java -Dsbt.log.noformat=true -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M -jar "%SCRIPT_DIR%\sbt-launch-0.13.12.jar" %*

sbt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
java -Dsbt.log.noformat=true -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M -jar `dirname $0`/sbt-launch-0.13.9.jar "$@"
2+
java -Dsbt.log.noformat=true -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M -jar `dirname $0`/sbt-launch-0.13.12.jar "$@"

src/main/scala/Plugin.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Plugin extends gitbucket.core.plugin.Plugin {
88

99
override val pluginName: String = "Announce Plugin"
1010

11-
override val description: String = "Allows to handle announces for gitbucket"
11+
override val description: String = "Provide announces for gitbucket users and groups"
1212

1313
override val versions: List[Version] = List(
1414
new Version("1.0.0")
@@ -17,6 +17,7 @@ class Plugin extends gitbucket.core.plugin.Plugin {
1717
, new Version("1.3.0")
1818
, new Version("1.4.0")
1919
, new Version("1.5.0")
20+
, new Version("1.6.0")
2021
)
2122

2223
override val systemSettingMenus: Seq[(Context) => Option[Link]] = Seq(

src/main/scala/fr/brouillard/gitbucket/announce/controller/AnnounceController.scala

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
package fr.brouillard.gitbucket.announce.controller
22

3+
import javax.mail.SendFailedException
4+
5+
import com.github.takezoe.slick.blocking.BlockingH2Driver.blockingApi._
36
import fr.brouillard.gitbucket.announce.html
47
import gitbucket.core.controller.ControllerBase
8+
import gitbucket.core.model.Account
9+
import gitbucket.core.model.Profile._
510
import gitbucket.core.service.{AccountService, SystemSettingsService}
611
import gitbucket.core.servlet.Database
712
import gitbucket.core.util.AdminAuthenticator
13+
import io.github.gitbucket.markedj.{Marked, Options}
814
import io.github.gitbucket.scalatra.forms._
9-
import org.apache.commons.mail.{DefaultAuthenticator, HtmlEmail, EmailException}
10-
import io.github.gitbucket.markedj.Marked
11-
import io.github.gitbucket.markedj.Options
15+
import org.apache.commons.mail.{DefaultAuthenticator, EmailException, HtmlEmail}
1216
import org.slf4j.LoggerFactory
13-
import gitbucket.core.model.{GroupMember, Account}
14-
import gitbucket.core.model.Profile._
15-
import gitbucket.core.util.{StringUtil, LDAPUtil}
16-
import gitbucket.core.service.SystemSettingsService.SystemSettings
17-
import profile.simple._
18-
import StringUtil._
19-
import org.slf4j.LoggerFactory
20-
import gitbucket.core.model.Profile.dateColumnType
21-
import javax.mail.SendFailedException
2217

2318
class AnnounceController extends AnnounceControllerBase
2419
with AdminAuthenticator

0 commit comments

Comments
 (0)