Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Aug 11, 2019
1 parent 199c8cc commit 142dcd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ Goto the `repository` menu, you can see `Code search` section.

|Plugin version|GitBucket version|
|:-------------:|:-------:|
|1.0.0|4.19.x - 4.29.0|
|2.0.0|4.32.0 - 4.32.0|
|1.0.0|4.19.x - 4.31.x|

# Build from source

```sh
sbt package
sbt assembly
```

The built package will be created at `/target/scala-2.12/gitbucket-code-search-plugin_2.12-{plugin-version}.jar`
The built package will be created at `/target/scala-2.13/gitbucket-code-search-plugin-{plugin-version}.jar`

# License

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name := "gitbucket-code-search-plugin"
version := "1.0.0"
organization := "net.yoshinorin"
version := "2.0.0"
scalaVersion := "2.13.0"
gitbucketVersion := "4.32.0"
5 changes: 4 additions & 1 deletion src/main/scala/Plugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ class Plugin extends gitbucket.core.plugin.Plugin {
override val pluginId: String = "codesearch"
override val pluginName: String = "Code Search Plugin"
override val description: String = "Instead of removed default code search."
override val versions: List[Version] = List(new Version("1.0.0"))
override val versions: List[Version] = List(
new Version("1.0.0"),
new Version("2.0.0")
)

override val repositoryMenus: Seq[(RepositoryInfo, Context) => Some[Link]] = Seq(
(repository: RepositoryInfo, context: Context) => Some(Link("Code search", "Code search", "/search?type=code&q=&type=files", Some("search")))
Expand Down

0 comments on commit 142dcd2

Please sign in to comment.