Support for compileOnly scope

start.spring.io exposes an annotation processor (Lombok) that's quite
popular but is exposed as a compile/transitive dependency. This commit
introduces a `compileOnly` scope that maps to Gradle's `compileOnly`
scope and Maven's `optional` flag.

There is a case to support optional dependencies in general but
unfortunately, Gradle doesn't have support for such feature.

Closes gh-128
This commit is contained in:
Stephane Nicoll
2016-11-04 11:38:15 +01:00
parent e3112811b7
commit 079f46f51c
8 changed files with 123 additions and 5 deletions

View File

@@ -112,6 +112,7 @@ initializr:
id: lombok
groupId: org.projectlombok
artifactId: lombok
scope: compileOnly
description: Java annotation library which helps to reduce boilerplate code and code faster
mappings:
- versionRange: "[1.2.0.RELEASE,1.4.0.M1)"