File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,4 @@ language: scala
33jdk :
44- oraclejdk8
55script :
6- - sbt test
7- addons :
8- apt :
9- packages :
10- - oracle-java8-installer
6+ - ./build-gitbucket-plugin.sh
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ rm -rf gitbucket
3+ git clone https://github.com/gitbucket/gitbucket.git
4+ cd gitbucket
5+
6+ GITBUCKET_VERSION=` cat build.sbt | grep " GitBucketVersion =" | sed ' s/^.*"\(.*\)".*$/\1/' `
7+ echo " GITBUCKET_VERSION: $GITBUCKET_VERSION "
8+ sbt publish-local
9+
10+ cd ..
11+ sbt -Dgitbucket.version=$GITBUCKET_VERSION test
Original file line number Diff line number Diff line change 1- name := " gitbucket-notifications-plugin"
1+ val Organization = " io.github.gitbucket"
2+ val ProjectName = " gitbucket-notifications-plugin"
3+ val ProjectVersion = " 1.1.0"
4+ val GitBucketVersion = Option (System .getProperty(" gitbucket.version" )).getOrElse(" 4.16.0" )
25
3- organization := " io.github.gitbucket"
4- version := " 1.1.0"
6+ name := ProjectName
7+ organization := Organization
8+ version := ProjectVersion
59scalaVersion := " 2.12.2"
610
711lazy val root = (project in file(" ." )).enablePlugins(SbtTwirl )
812
913libraryDependencies ++= Seq (
10- " io.github.gitbucket" %% " gitbucket" % " 4.16.0 " % " provided" ,
11- " javax.servlet" % " javax.servlet-api" % " 3.1.0" % " provided"
14+ " io.github.gitbucket" %% " gitbucket" % GitBucketVersion % " provided" ,
15+ " javax.servlet" % " javax.servlet-api" % " 3.1.0" % " provided"
1216)
1317
1418scalacOptions ++= Seq (" -feature" , " -deprecation" )
You can’t perform that action at this time.
0 commit comments