<NME> build.gradle
<BEF> apply plugin: 'com.android.library'

android {
    compileSdkVersion 32
    resourcePrefix 'joda_'

    defaultConfig {
        minSdkVersion 14
        consumerProguardFiles 'proguard-rules.txt'
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    lintOptions {
        lintConfig file('lint.xml')
        textReport true
        textOutput 'stdout'
    }
}

apply plugin: net.danlew.android.joda.TzDataPlugin
apply plugin: "com.vanniktech.maven.publish"

    mavenCentral()
}

dependencies {
    compile 'joda-time:joda-time:2.7:no-tzdb'
}

task updateTzData(dependsOn:assembleDebug, type: JavaExec) {
    main = "org.joda.time.tz.ZoneInfoCompiler"
	classpath = files("build/intermediates/bundles/debug/classes.jar")
    systemProperty "org.joda.time.DateTimeZone.Provider", "org.joda.time.tz.UTCProvider"
    args "-src", "../tzdata", "-dst", "res/raw", "africa",  "antarctica", "asia", "australasia", "europe", "northamerica", "southamerica", "pacificnew", "etcetera", "backward", "systemv"
}
    androidTestImplementation libs.androidx.test.runner
    androidTestImplementation libs.androidx.test.rules
    androidTestImplementation libs.androidx.test.ext.junit
}

tzdata {
    tzDataDir = new File(project.rootDir, 'tzdata')
}

<MSG> modify updateTzData task to use new joda-time dependency

<DFF> @@ -23,13 +23,18 @@ repositories {
     mavenCentral()
 }
 
+configurations {
+    updateTzData
+}
+
 dependencies {
     compile 'joda-time:joda-time:2.7:no-tzdb'
+    updateTzData 'joda-time:joda-time:2.7'
 }
 
-task updateTzData(dependsOn:assembleDebug, type: JavaExec) {
-    main = "org.joda.time.tz.ZoneInfoCompiler"
-	classpath = files("build/intermediates/bundles/debug/classes.jar")
+task updateTzData(type: JavaExec) {
+    classpath configurations.updateTzData + files("build/intermediates/bundles/debug/classes.jar")
+    main = "net.danlew.android.joda.ZoneInfoCompiler"
     systemProperty "org.joda.time.DateTimeZone.Provider", "org.joda.time.tz.UTCProvider"
     args "-src", "../tzdata", "-dst", "res/raw", "africa",  "antarctica", "asia", "australasia", "europe", "northamerica", "southamerica", "pacificnew", "etcetera", "backward", "systemv"
 }

modify updateTzData task to use new joda-time dependency