question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scripted should not be enabled by default

See original GitHub issue

steps

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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bantonssoncommented, May 15, 2018

Hi @JoeNunnelley

The unresolved message you are getting is because the scripted-plugin should now be added with a %% for cross compiled like this libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value. I’m not sure why the scripted plugin is in the build.sbt file and not in the project/plugins.sbt file, but maybe your build.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.

1reaction
bantonssoncommented, Nov 14, 2017

@jvican That was the workaround I was afraid of 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found