Dependencies from build.gradle are not imported

411 Views Asked by At

I am trying import the Java SDK for Temporal (www.temporal.io). I follow just the first few lines of their quick start guide. It is a Spring Boot application that is generated with the Spring Initializr. My build.gradle looks like this:

plugins {
    id 'org.springframework.boot' version '2.4.5'
    id 'io.spring.dependency-management' version '1.0.11.RELEASE'
    id 'java'
}

group = 'com.cardlay.temporaldemo'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

repositories {
    mavenCentral()
}

dependencies {
    //Java Temporal SDK
    implementation group: 'io.temporal', name: 'temporal-sdk', version: '1.0.7'
    implementation group: 'commons-configuration', name: 'commons-configuration', version: '1.10'
    implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'

    // Spring Boot Application dependencies
    implementation 'org.springframework.boot:spring-boot-starter'

    // Testing dependencies
    testImplementation 'junit:junit:4.13'
    testImplementation 'org.mockito:mockito-all:1.10.19'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
    useJUnitPlatform()
}

The weird thing is, however, that if I make an application without Spring Boot, then Gradle will recognize temporal and allow me to do imports in my classes.

So what is it about the Spring Boot build.gradle file and configuration, that doesn't allow me to do imports?

0

There are 0 best solutions below