EnvFile icon indicating copy to clipboard operation
EnvFile copied to clipboard

Add support for Play 2 App

Open mirelon opened this issue 4 years ago • 4 comments

Play 2 App is a run configuration provided by the Scala plugin

mirelon avatar Mar 27 '20 10:03 mirelon

I will look into this someday. Until then - contributions are welcome.

ashald avatar Mar 30 '20 23:03 ashald

I would like to contribute and take time to add Play 2 App support. But do you know where the code is located for something similar ? Is it a good start to go from GradleEnvFileProvider in order to create a PlayAppEnvFileProvider ?

antoine-morisseau avatar Sep 30 '20 12:09 antoine-morisseau

Ok. i saw it use the GradleRunConfiguration to attach to it. I created a run configuration of a Play 2 App configuration and then stored it as xml project file. type="Play2FrameworkRunConfigurations" factoryName="Play 2 App" I searched everywhere a Play2FrameworkRunConfigurations on the web and couldn't find anything.

Even in the scala plugin it's not referenced. (https://github.com/JetBrains/intellij-scala)

If anyone can help me to find the missing link from Play2FrameworkRunConfigurations and the ConfigurationFactory that it must extends

I found a AbstractTestRunConfigurationFactory but i'm not sure if it's helpfull for us.

Maybe it's made by typesafe in another library but i didn't see any clear dependency in the build.sbt file. I saw a Resolver.typesafeIvyRepo("releases") used but i don't find the link to a lib from it.

antoine-morisseau avatar Sep 30 '20 13:09 antoine-morisseau

I have created a PR with sbt support, it's not updated to last IntelliJ version but it's something #167 I usually compile and run my play application with sbt tasks so it does the trick.

zalito12 avatar Dec 13 '21 03:12 zalito12