Toy project to illustrate that dependencies loaded into the settings scripthandler can be missing from dependency lockfiles, or that the lockfile naming/locations are inconsistent.
Note that a dynamically-versioned Gradle Enterprise is loaded in the settings scripthandler. It will be absent completely from Example One below.
Invoke:
$ ./gradlew resolveAndLockAll --write-locks
Expected:
- Separate files for settings vs. buildscript scripthandler dependencies
- GE plugin present in settings scripthandler lockfile
Actual:
- Single file at
gradle/dependency-locks/buildscript-classpath.lockfile
contains buildscript dependencies - Settings scripthandler information is missing; only buildscript classpath is written to the lockfile
Uncomment the last line of settings.gradle
, then invoke:
$ ./gradlew resolveAndLockAll --write-locks
Expected:
- Separate files for settings vs. buildscript scripthandler dependencies
- Both files are in the root project folder
- GE plugin present in settings scripthandler lockfile
Actual:
- Separate files exist:
buildscript-gradle.lockfile
contains buildscript dependencies;gradle/dependency-locks/buildscript-classpath.lockfile
now contains settings dependencies - Use of
gradle/dependnecy-locks
is unexpected withONE_LOCKFILE_PER_PROJECT
feature preview - GE plugin is present in settings scripthandler lockfile (success!)