Clone
Cédric Champeau
committed
on 21 Nov 16
Add a method to lock a configuration
Locking a configuration makes it immutable, and allows us to gently tell the user
that the configuratio… Show more
Add a method to lock a configuration

Locking a configuration makes it immutable, and allows us to gently tell the user

that the configuration is not for general use. Typically here we want to deprecate

`compile` in the future, so the `java-library` plugin creates a new `implementation`

configuration that should be used in place of `compile`. By locking the `compile`

configuration we prevent the user from accidently using it to declare dependencies,

and tell them to use `api` or `implementation` instead.

Show less

master + 469 more