Skip to content

[Bug]: Unable to build in Eclipse due to scala-library error #11179

@huw0

Description

@huw0

What happened

After applying the workaround in #11178, Eclipse then fails to load most of the modules. Something in build-logic module is failing.

The Eclipse console shows:

CONFIGURE SUCCESSFUL in 134ms
> Task :nessie-build-logic:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :nessie-build-logic:generateExternalPluginSpecBuilders FROM-CACHE
> Task :nessie-build-logic:extractPrecompiledScriptPluginPlugins FROM-CACHE
> Task :nessie-build-logic:compilePluginsBlocks FROM-CACHE
> Task :nessie-build-logic:generatePrecompiledScriptPluginAccessors FROM-CACHE
> Task :nessie-build-logic:generateScriptPluginAdapters FROM-CACHE
> Task :nessie-build-logic:compileKotlin FROM-CACHE
> Task :nessie-build-logic:compileJava NO-SOURCE
> Task :nessie-build-logic:pluginDescriptors
> Task :nessie-build-logic:processResources
> Task :nessie-build-logic:classes
> Task :nessie-build-logic:jar
Could not resolve: org.scala-lang:scala-library:2.13.16
> Task :nothing UP-TO-DATE
Could not resolve: org.scala-lang:scala-library:2.13.16

[Incubating] Problems report is available at: file:///home/huw0/Downloads/nessie/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 11s
9 actionable tasks: 3 executed, 6 from cache

Although this completes successfully, it doesn't seem right that a task of :nothing has been generated? Most modules in the IDE have either not loaded or have errors because auto-generated code has failed to build.

A similar error is also shown outside the IDE when running ./gradlew eclipse

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0   2982      0 --:--:-- --:--:-- --:--:--  3036
100    64  100    64    0     0    483      0 --:--:-- --:--:-- --:--:--   483
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 43764  100 43764    0     0   236k      0 --:--:-- --:--:-- --:--:--  237k
Configuration on demand is an incubating feature.

> Task :nessie-perftest-simulations:eclipseClasspath
Could not resolve: org.scala-lang:scala-library:2.13.16

The scala-library dependency cannot be found - although the build works successfully with a ./gradlew clean build

How to reproduce it

  1. Download Nessie source and extract
  2. Run ./gradlew eclipse and observe the error

Nessie server type (docker/uber-jar/built from source) and version

N/A

Client type (Ex: UI/Spark/pynessie ...) and version

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions