How to add provided in Maven Central

97 views
Skip to first unread message

Josiah Noel

unread,
Oct 9, 2023, 5:17:13 PM10/9/23
to Project Lombok
I notice on Maven Central, lombok is listed like this:

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.30</version>
    <scope>provided</scope>
</dependency>


What did you guys do to add that provided scope on Maven Central? 

guillaume LE LOUËT

unread,
Oct 9, 2023, 9:44:43 PM10/9/23
to Project Lombok
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>

works for me.

Josiah Noel

unread,
Oct 11, 2023, 7:25:49 AM10/11/23
to Project Lombok
I know how scopes work. I'm asking how Lombok added a provided clause here.

Reinier Zwitserloot

unread,
Nov 16, 2023, 2:48:55 AM11/16/23
to Project Lombok
Hi Josiah,

our maven push is done by build.xml so you can just check that out :)

yawkat

unread,
Nov 21, 2023, 8:37:08 AM11/21/23
to Project Lombok
mvnrepository.com is not an official sonatype site. It is developed by an independent developer. It uses some heuristics to suggest a scope for the dependency declaration, AFAIK this does not come from the artifacts uploaded to central.

 - Jonas
Reply all
Reply to author
Forward
0 new messages