Skip to content

Commit

Permalink
Enabled COMPAT_MODE env test to build GB 4.0 compatible plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Mar 8, 2017
1 parent 075c1a8 commit cc3ac89
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ val Organization = "com.github.lefou"
// Don't forget to also update src/main/scala/Plugin.scala
val Version = "1.0.2"

val ScalaVersion = "2.12.1"
val CompatMode = System.getenv("COMPAT_MODE") == "1"

val GitBucketVersion = "4.10"
val GitBucketAssembly = "io.github.gitbucket" %% "gitbucket" % s"${GitBucketVersion}.0"
val JavaOptions = Seq("-target", "8", "-source", "8")
val ScalaVersion = if(CompatMode) "2.11.8" else "2.12.1"

val GitBucketVersion = if(CompatMode) "4.0" else "4.10"
val GitBucketAssembly =
if(CompatMode) "gitbucket" % "gitbucket-assembly" % s"${GitBucketVersion}.0"
else "io.github.gitbucket" %% "gitbucket" % s"${GitBucketVersion}.0"
val JavaOptions =
if(CompatMode) Seq("-target", "7", "-source", "7")
else Seq("-target", "8", "-source", "8")

val Name = s"gitbucket-${GitBucketVersion}-asciidoctor-plugin"

Expand Down

0 comments on commit cc3ac89

Please sign in to comment.