Build with 2.16-SNAPSHOT API Update build.sbt to point to gerrit master, which is 2.16-SNAPSHOT Bug: Issue 9838 Change-Id: If1c048558b259ea37c88994797cf8124c53e9003
diff --git a/README.md b/README.md index 870981b..497b201 100644 --- a/README.md +++ b/README.md
@@ -1,2 +1,12 @@ # analytics-wizard Wizard to provision a new GerritAnalytics stack + +# Setup + +this plugin is being developed against gerrit master (2.16), thus it relies on `gerrit-plugin-api-2.16-SNAPSHOT` + +In order to make `gerrit-plugin-api-2.16-SNAPSHOT` available locally you can run the following from a gerrit checkout dir: + +``` +./tools/maven/api.sh install +``` \ No newline at end of file
diff --git a/build.sbt b/build.sbt index 14857fe..6a71bc2 100644 --- a/build.sbt +++ b/build.sbt
@@ -1,6 +1,6 @@ enablePlugins(GitVersioning) -val gerritApiVersion = "2.15.1" +val gerritApiVersion = "2.16-SNAPSHOT" val pluginName = "analytics-wizard" git.useGitDescribe := true @@ -8,6 +8,7 @@ lazy val root = (project in file(".")) .settings( name := pluginName, + resolvers += Resolver.mavenLocal, scalaVersion := "2.11.8",
diff --git a/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticsWizardActions.scala b/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticsWizardActions.scala index 4f42927..2c55c64 100644 --- a/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticsWizardActions.scala +++ b/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticsWizardActions.scala
@@ -36,7 +36,7 @@ override def apply(resource: ProjectResource, input: Input): Response[String] = { - val projectName = resource.getControl.getProject.getName + val projectName = resource.getName val encodedName = AnalyticsWizardActions .encodedName(projectName) @@ -55,7 +55,7 @@ override def apply(resource: ProjectResource, input: DockerComposeCommand): Response[String] = { - val projectName = resource.getControl.getProject.getName + val projectName = resource.getName val encodedName = AnalyticsWizardActions .encodedName(projectName)