Skip to content

Spring Boot starter does not bring spring-boot-starter #2866

@snicoll

Description

@snicoll

Integration

sentry

Java Version

17

Version

6.26.0

Steps to Reproduce

  • Add only sentry-spring-boot-starter-jakarta to a Spring Boot application
  • Compilation fails as core Spring Boot infrastructure is not available.

See also https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.developing-auto-configuration.custom-starter.starter-module

Expected Result

compilation succeed.

Actual Result

> Task :compileJava
/Users/snicoll/Downloads/demo-sentry-test/src/main/java/com/example/demosentrytest/DemoSentryTestApplication.java:3: error: package org.springframework.boot does not exist
import org.springframework.boot.SpringApplication;
                               ^
/Users/snicoll/Downloads/demo-sentry-test/src/main/java/com/example/demosentrytest/DemoSentryTestApplication.java:4: error: package org.springframework.boot.autoconfigure does not exist
import org.springframework.boot.autoconfigure.SpringBootApplication;
                                             ^
/Users/snicoll/Downloads/demo-sentry-test/src/main/java/com/example/demosentrytest/DemoSentryTestApplication.java:6: error: cannot find symbol
@SpringBootApplication
 ^
  symbol: class SpringBootApplication
/Users/snicoll/Downloads/demo-sentry-test/src/main/java/com/example/demosentrytest/DemoSentryTestApplication.java:10: error: cannot find symbol
                SpringApplication.run(DemoSentryTestApplication.class, args);
                ^
  symbol:   variable SpringApplication
  location: class DemoSentryTestApplication
4 errors

> Task :compileJava FAILED

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions