Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error while configuring play framework for connect add-on

Alok Singh December 21, 2015

I am creating my first Atlassian Connect add-on using this tutorial https://bitbucket.org/atlassian/atlassian-connect-play-java. Initially I used  2.11.x scala version but there were some conflicts in dependencies  so I chnaged scala to 2.10.3 and those problems disappeared. Build.sbt file now looks like 

name := """leanGearsDiscovery"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava)

scalaVersion := "2.10.3"



libraryDependencies ++= Seq(

  cache,
  javaWs ,
  javaCore,
  javaJpa,
  "com.atlassian.connect" % "ac-play-java_2.10" % "0.10.1" withSources()
)

// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator

resolvers += "Atlassian's Maven Public Repository" at "https://maven.atlassian.com/content/groups/public"

resolvers += "Local Maven Repository" at "file://" + Path.userHome + "/.m2/repository"

No I am getting 

[info] 'compiler-interface' not yet compiled for Scala 2.10.3. Compiling...
[info]   Compilation completed in 10.629 s
[error] /opt/AtlassianPluginWorkspace/leanpitchJIRAPlugins/AtlassianConnect/leanGearsDiscovery/conf/routes:7: type Routes is not a member of package ac
[error] ->        /                           ac.Routes
[error] /opt/AtlassianPluginWorkspace/leanpitchJIRAPlugins/AtlassianConnect/leanGearsDiscovery/conf/routes:7: type Routes is not a member of package ac
[error] ->        /                           ac.Routes
[error] /opt/AtlassianPluginWorkspace/leanpitchJIRAPlugins/AtlassianConnect/leanGearsDiscovery/conf/routes:7: type Routes is not a member of package ac
[error] ->        /                           ac.Routes
[error] three errors found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 338 s, completed 21 Dec, 2015 6:38:01 PM

I have downloaded the latest version of play that includes activator (2.4.4). But the tutorial says it needs to be 2.2.4. Do I have to go back to the same old version or is there a way I can still contiue or resolve this error?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2016

Unfortunately we have not updated the atlassian-connect-play-java framework to be compatible with the latest Play framework version yet.

I have raised this issue on your behalf to try and make this happen: https://bitbucket.org/atlassian/atlassian-connect-play-java/issues/6/please-update-to-the-latest-version-of

In the meantime please use version 2.2.4.

0 votes
Alok Singh December 22, 2015

Changing it to 2.2.4 worked.

TAGS
AUG Leaders

Atlassian Community Events