plugins { id 'org.springframework.boot' version '3.0.4' id 'io.spring.dependency-management' version '1.1.0' id 'java' } group = 'com.example.kafkaapp' version = '0.0.1-SNAPSHOT' repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.kafka:spring-kafka' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } } tasks.named('bootRun') { doFirst { systemProperty 'spring.profiles.active', 'dev' // Set active profile if needed } }