Comments (11)
@zyv you're right, but unfortunately I don't know how to build the SBT plugin which must be build for scala 2.10 without cross-building the whole project. If you have an idea, it would be cool.
from api-first-hand.
Hi!
Could you please try with sbt publishLocal without "plus" sign?
from api-first-hand.
Thank you @slavaschmidt for your response.
It successfully works.
Could you please explain to me why it doesn't work with the "+" since in the ReadMe file it is written with it?
from api-first-hand.
> help +
+ <command>
Runs <command> for each Scala version specified for cross-building.
For each string in `crossScalaVersions` in the current project, this command sets the
`scalaVersion` of all projects to that version, reloads the build, and
executes <command>. When finished, it reloads the build with the original
Scala version.
See also `help ++`
My understanding is that Play framework is not compatible with Scala 2.10 since version 2.5, but because of the plus sign, sbt attempts to build for Scala 2.10 as well.
I guess this means that my commit in #45 is wrong then, and one should remove Scala 2.10 compatibility if it is no longer supported, instead of removing + from the publishLocal
command.
from api-first-hand.
@zyv Yes, that's correct. We cannot build for scala 2.10 because it's not supported by play itself.
But I think you removed the + sign in the #45, so why is it wrong then?
from api-first-hand.
Well, I thought that instead of restricting the build to the current version of Scala by removing the plus, one should simply remove cross-building from the build system, if it is so, that the project will only ever be compatible with the current version of Play, which itself will only ever be compatible with the current version of Scala.
However, I lack background in Scala to decide what's best. If you think that removing the plus sign is better, because cross-building will be used again in the future, then everything is alright :-)
from api-first-hand.
Hi @zyv, just following up on @slavaschmidt's point/openness to ideas on this. If you'd like to share, it would be great! Otherwise, I'll close this thread...
from api-first-hand.
@LappleApple sorry, no idea; lacking background in as far as Scala ecosystem is concerned, I still don't quite get it why some sbt plugin must be built for Scala 2.10 and not Scala 2.11, and besides see #47 :-/
from api-first-hand.
Just to clarify a bit: sbt 0.13 does not support scala 2.11 or 2.12 (at least not officially). The plugin code must be scala 2.10 and must be compiled with scala 2.10
from api-first-hand.
Would updating to sbt 0.13.13 solve the issue?
Directly on 2.12 page they say 0.13.13 should be ok
http://www.scala-lang.org/news/2.12.0
from api-first-hand.
@gipeshka Well, it's complicated :) The SBT plugin supports different Scala versions as a build tool.
The tool itself is a different story. The SBT supports Scala 2.12 but it's source code does not.
Imagine Java 8 would not be compatible with Java 6 and maven sources would be Java 6. Then you can build whatever you want with maven but you must build maven itself with Java 6, right?
from api-first-hand.
Related Issues (20)
- HTTP response headers HOT 1
- Required properties validation HOT 5
- JSON schema enums produce code that does not compile. HOT 5
- Schema responses type should not have to start with capital letter HOT 3
- Easy question: Which of these exist vs. which of these are still in plans? HOT 2
- Run Your Application section ... ??? HOT 14
- What's Beta build-status: the plugin? HOT 5
- Type Naming of Basic Types HOT 1
- Is this doc still relevant? HOT 7
- Activator Template contents: checking/updating HOT 2
- User >: Any In SwaggerSecurityExtractors HOT 6
- Help with int64 & date-time HOT 5
- Extra nesting level for validation errors
- Create a testing environment for runtime issues
- Move from Activator to Giter8 HOT 2
- What is the Validation URL? HOT 1
- Use plugin without Activator HOT 2
- Add support for play 2.6
- is it possible to return a generic JSON? (no schema in swagger)
- Failure to parse a response with type: file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-first-hand.