그레이들

그레이들

:zap: compilePath & runtimeClasspath #



:zap: testCompilePath & testRuntimeClasspath #


" Configuration inheritance is heavily used by Gradle core plugins like the Java plugin. For example the testImplementation configuration extends the implementation configuration. “

출처 : Configuration inheritance and composition



:zap: example #

dependencies {
    ...
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'

    ...

    compileOnly 'org.projectlombok:lombok'

    ...

    runtimeOnly 'com.h2database:h2'
    runtimeOnly 'mysql:mysql-connector-java'

    ...

    annotationProcessor 'org.projectlombok:lombok'

    ...

    testImplementation 'org.springframework.security:spring-security-test'

    ...
}



참고 #