DEV Community

Query Filter
Query Filter

Posted on

dupl5

configurations {
    // Your existing configuration settings here
    // e.g., implementation.canBeResolved = true
}

// Add this below to handle the JIT priority
configurations.all {
    resolutionStrategy {
        // Force the newer version of the interface
        force 'com.citigroup:OESIntf3_8:3.8_A29-SNAPSHOT'

        // Force the classpath order so the JIT sees OESIntf first
        sortArtifacts({ a, b ->
            if (a.name.contains("OESIntf3_8")) return -1
            if (b.name.contains("OESIntf3_8")) return 1
            return 0
        } as Comparator)
    }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)