Here is the list of changes required on Gradle upgrade from version 6.5 to 8.1.1
1. Replace xml.enabled to xml.required in reports of jacocoTestReport
jacocoTestReport {
reports {
xml.enabled = true //replace with xml.required = true
....
}
}
....
}
}
2. Replace the depreciated properties with new properties as mentioned below:
- appendix -> archiveAppendix
- archiveName -> archiveFileName (archivePath)
- baseName -> archiveBaseName
- classifier -> archiveClassifier
- destinationDir -> destinationDirectory
- extension -> archiveExtension
- version -> archiveVersion
3. Replace implementation's force with version
implementation (' ... ') {
force = true // replace with version(true)
}
4. Comment/remove all @Override
5. Replace all compile (' ... ') dependencies with implementation(' ... ')