Skip to content

impossible bump com.bugsnag:bugsnag-spring from 3.8.0 to 4.0.0 #261

@dbouclier

Description

@dbouclier

Describe the bug

After upgrading com.bugsnag:bugsnag-spring from 3.8.0 to 4.0.0, our build fails to compile any class that references the documented com.bugsnag.Bugsnag entry point:

error: cannot find symbol
import com.bugsnag.Bugsnag;

No code change on our side, only the version bump.

I'm getting confused by https://github.com/bugsnag/bugsnag-java/blob/v4.0.0/UPGRADING.md still recommends:

 @Configuration
 @Import(BugsnagSpringConfiguration.class)
 public class BugsnagConfig {
     @Bean
     public Bugsnag bugsnag() {
         return new Bugsnag("your-api-key-here");
     }
 }

But that code does not compile against bugsnag-spring:4.0.0 alone

Expected behavior

bugsnag-spring should expose the core com.bugsnag:bugsnag artifact on the compile classpath of consumers, as it did in 3.8.0 and as the documented usage requires.

Environment

  • Gradle 9+, JDK 21+

Thanks for taking a look.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions