buildSrc/src/main/kotlin/AndroidJavaVersion.kt
changeset 7 b83e6b69e806
parent 1 831cffa9c991
child 8 729a3ee3840a
equal deleted inserted replaced
6:99ad8c14fec2 7:b83e6b69e806
    35 fun Project.configureAnnotationProcessorDeps() {
    35 fun Project.configureAnnotationProcessorDeps() {
    36     dependencies {
    36     dependencies {
    37         configurations.whenObjectAdded {
    37         configurations.whenObjectAdded {
    38             when (name) {
    38             when (name) {
    39                 "kapt" -> {
    39                 "kapt" -> {
    40                     add(name,"javax.xml.bind:jaxb-api:2.3.1")
    40                     add(name, "javax.xml.bind:jaxb-api:2.3.1")
    41                     add(name, "com.sun.xml.bind:jaxb-core:2.3.0.1")
    41                     add(name, "com.sun.xml.bind:jaxb-core:2.3.0.1")
    42                     add(name, "com.sun.xml.bind:jaxb-impl:2.3.2")
    42                     add(name, "com.sun.xml.bind:jaxb-impl:2.3.2")
    43                 }
    43                 }
    44                 "annotationProcessor" -> add(name, "javax.xml.bind:jaxb-api:2.3.1")
    44                 "annotationProcessor" -> add(name, "javax.xml.bind:jaxb-api:2.3.1")
       
    45                 // I guess that on AGP 4.x+ testAnnotationProcessor inherit from annotationProcessor
       
    46                 // not on 3.6.x
       
    47                 "testAnnotationProcessor" -> add(name, "javax.xml.bind:jaxb-api:2.3.1")
    45             }
    48             }
    46         }
    49         }
    47     }
    50     }
    48 }
    51 }