scripted should not be enabled by default
See original GitHub issuesteps
Start from a simple project:
$ cat project/build.properties
sbt.version=1.0.1
$ cat project/plugins.sbt
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
$ cat build.sbt
scalaVersion := "2.11.11"
Run:
$ sbt update
…
[warn] Note: Unresolved dependencies path:
[warn] org.scala-sbt:scripted-sbt_2.11:1.0.1 ((sbt.ScriptedPlugin.projectSettings) ScriptedPlugin.scala#L39)
[warn] +- default:coursier-sbt-1-0_2.11:0.1-SNAPSHOT
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.scala-sbt#scripted-sbt_2.11;1.0.1: not found
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:331)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:205)
…
[error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: org.scala-sbt#scripted-sbt_2.11;1.0.1: not found
[error] Total time: 7 s, completed 11 sept. 2017 19:10:37
problem
updates don’t work if scala version is set to 2.11.x.
expectation
updates should work, the scripted plugin should not be enabled by default. It should require enablePlugins(ScriptedPlugin)
notes
sbt version: 1.0.1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:9 (7 by maintainers)
Top Results From Across the Web
What is the default for minifyEnabled for buildType not ...
The default value for minifyEnabled is false for all build types, as @laalto answered. However, currently (as of 2015-04-24), this is not ...
Read more >Allow or prevent custom script - SharePoint in Microsoft 365
By default, script is allowed on most sites that admins create. It is not allowed on OneDrive, on sites users create themselves, on...
Read more >Is Windows Script Host Enabled By Default? - Definir Tech
While Windows script host is enabled by default, some users choose to disable it to prevent malicious code written in scripting languages to...
Read more >Solved: Windows Universal Forwarder default scripted input...
Solved: I have been trying to disable the disable the default scripted inputs from a Windows Universal Forward (version 6.2.1 and version 6.1.3)...
Read more >Using Painless in Kibana scripted fields | Elastic Blog
By default that is "expression" and "painless" in 5.0 and just "expression" in 2.x. You can install other scripting languages and enable ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @JoeNunnelley
The unresolved message you are getting is because the scripted-plugin should now be added with a
%%
for cross compiled like thislibraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
. I’m not sure why the scripted plugin is in thebuild.sbt
file and not in theproject/plugins.sbt
file, but maybe yourbuild.sbt
is for a plugin that depends on the scripted plugin?The other thing that this ticket is about is that the scripted plugin is now an auto plugin and will be automatically added to all projects in a multi project build, so that you need to add
.disablePlugins(ScriptedPlugin)
to all projects that don’t use it.@jvican That was the workaround I was afraid of 😉