LPS-52169 Use a more reliable chain of dependency uptodate checks (deploy will not be considered uptodate unless jar is, which will not be considered uptodate unless compile is)