Skip to content

Replace variables in Gradle #52

@mrbusche

Description

@mrbusche

Should be able to detect the sb version here

buildscript {
    ext {
        springBootVersion = '3.2.+'
        springCloudVersion = '2023.0.+'
    }
    dependencies {
        classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4+"
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

subprojects {
    sourceCompatibility = 21
    targetCompatibility = 21

    configurations {
        providedRuntime

        compileOnly {
            extendsFrom annotationProcessor
        }
    }

    dependencies {
        compileOnly 'org.projectlombok:lombok'
        annotationProcessor 'org.projectlombok:lombok'
        testImplementation('org.springframework.boot:spring-boot-starter-test')
        testImplementation('org.springframework.security:spring-security-test')
        testImplementation('org.junit.jupiter:junit-jupiter:5.4.0')
        testImplementation('org.mockito:mockito-junit-jupiter:2.18.3')
        runtimeOnly 'org.springframework.boot:spring-boot-properties-migrator'
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions