Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolved Yeoman.yeomanSettings in the 0.9.0 #93

Closed
nuwan1025 opened this issue Apr 26, 2016 · 7 comments
Closed

Unresolved Yeoman.yeomanSettings in the 0.9.0 #93

nuwan1025 opened this issue Apr 26, 2016 · 7 comments

Comments

@nuwan1025
Copy link

Hi,
I am upgrading play-java app to play 2.5. My build.sbt file cant find the yeomanSettings when configured as in documentation for 0.9.0 tuplejump.

val appSettings = Seq(version := appVersion, libraryDependencies ++= appDependencies) ++
Yeoman.yeomanSettings

But I got it working by changing it to
Yeoman.projectSettings

Is this a documentation mistake?

@Shiti
Copy link
Contributor

Shiti commented Apr 26, 2016

Starting from 0.9.0, the plugin is an auto-plugin and its configuration is documented in the README. Please make sure you enable the plugin. Refer the demo to make sure you got it right. If it doesn't work even after that, please share your build file or a sample project for us to look into.

@nuwan1025
Copy link
Author

Thanks for the reply.My build.sbt was like this.

lazy val root = (project in file(".")).enablePlugins(PlayJava, Yeoman, PlayEbean).settings(
Yeoman. yeomanSettings: _*
}

I removed the settings part and it is working.I think for the 0.9.0 auto plugin version, we do not need to call
.settings(
Yeoman. yeomanSettings: _*
}
(I got confused with the following line in documentation
Note: If you're using build.sbt instead of the full scala build, you need to place the 2 additions above into build.sbt as follows:)

Please correct me if I am wrong...
Thanks

@Shiti
Copy link
Contributor

Shiti commented Apr 27, 2016

@nuwan1025 After the note, you need to check the sample code for the corresponding version

@Shiti Shiti closed this as completed Apr 27, 2016
@nuwan1025
Copy link
Author

When I run the application as an play app in my ide it worked fine. But when I try to package it with activator dist command, it doesnt package the ui part. Hence the grunt file is not read.
(Configured build.sbt as in the documentation)

I found the solution for that and it is working fine for me.
lazy val root = (project in file(".")).enablePlugins(PlayJava, Yeoman, PlayEbean).settings(
com.tuplejump.sbt.yeoman.Yeoman.projectSettings: _*
)

@malterb
Copy link

malterb commented May 9, 2016

@Shiti I was running into the same issue as @nuwan1025 and was able to fix it with his workaround

@enragedginger
Copy link

I too faced the same issue as @nuwan1025 and was able to fix it with his workaround. This should be documented as I feel it's relevant to #86, #90, and #95

@jmcardon
Copy link

@nuwan1025 Thank you for this workaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants