Answers for "CompileOptions.annotationProcessorPath` property instead."

0

CompileOptions.annotationProcessorPath` property instead.

ext{
    mapstructVersion = "1.2.0.Final"
}
dependencies{
    // ...
    // --- Mapstruct ---------------------------------
    compileOnly("org.mapstruct:mapstruct-jdk8:${mapstructVersion}")
    annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}"
}
compileJava {
    options.annotationProcessorPath = configurations.annotationProcessor

    // if you need to configure mapstruct component model
    options.compilerArgs << "-Amapstruct.defaultComponentModel=spring" 
}
Posted by: Guest on February-23-2021

Code answers related to "CompileOptions.annotationProcessorPath` property instead."

Browse Popular Code Answers by Language