• Andy Wilkinson's avatar
    Automatically create developmentOnly configuration · fb336100
    Andy Wilkinson authored
    Previously, the developmentOnly configuration, typically used for
    Devtools, had to be declared manually. The BootJar and BootWar tasks
    then had a property, excludeDevtools, that could be used to control
    whether or not Devtools would be excluded from the executable archive.
    
    This commit updates the reaction to the Java plugin being applied to
    automatically create the developmentOnly configuration. The classpaths
    of bootJar and bootWar are then configured not to include the contents
    of the developmentOnly configuration. As a result of this, the
    excludeDevtools property is no longer needed and has been deprecated.
    Its default has also been changed from true to false to make it easy
    to opt in to Devtools, when configured as a development-only
    dependency, being included in executable jars and wars by adding
    developmentOnly to the classpath of the archive task.
    
    Closes gh-16599
    fb336100
reacting.adoc 4.25 KB