current.txt and apiLevels.json are auto-generated files produced by the metalava plugin. To update those files you can run:
$ ./gradlew :base:gradle-api:updateMetalavaApi