Slackbot
07/25/2023, 12:22 AMSatyarth Sampath
07/25/2023, 3:32 AMmost recent version of library that was in mavenLocal not the version that is currently there.Can you elaborate on this with an example? I have a similar workflow and have never had to use --refresh-dependencies
Eli Graber
07/25/2023, 4:36 AMgradle publishToMavenLocal
then sync the consumer with Android Studio and run the app, the log line isn't printed. If I --refresh-dependencies
then sync the consumer with Android Studio and run the app, the log line is printed.Satyarth Sampath
07/25/2023, 5:12 AM--no-build-cache
or --rerun-tasks
given you the same result as using --refresh-dependencies
.
if this is android specific, then it could also be because an separate cache of jettified-*
artifacts are created for an external dep which are then used in the app.Adam
07/25/2023, 7:04 AM-SNAPSHOT
, or in the consumer with setChanging():
dependencies {
implementation("blah:foo:1.2.3") {
isChanging = true
}
}
more info: https://docs.gradle.org/current/userguide/dynamic_versions.html
my last resort is either blowing awayyou could speed this up by publishing to a local directory, instead of Maven Local. Then you would only have to delete the local directorythen refreshing dependencies then.m2
then refresh dependencies or changing the artifact versionpublishToMavenLocal
Eli Graber
07/25/2023, 9:33 AM