{"action":"created","issue":{"url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1204","repository_url":"https://api.github.com/repos/rzwitserloot/lombok","labels_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1204/labels{/name}","comments_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1204/comments","events_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1204/events","html_url":"https://github.com/rzwitserloot/lombok/issues/1204","id":181126037,"number":1204,"title":"Where is lombok-api.jar?","user":{"login":"aggro80","id":43728,"avatar_url":"https://avatars.githubusercontent.com/u/43728?v=3","gravatar_id":"","url":"https://api.github.com/users/aggro80","html_url":"https://github.com/aggro80","followers_url":"https://api.github.com/users/aggro80/followers","following_url":"https://api.github.com/users/aggro80/following{/other_user}","gists_url":"https://api.github.com/users/aggro80/gists{/gist_id}","starred_url":"https://api.github.com/users/aggro80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aggro80/subscriptions","organizations_url":"https://api.github.com/users/aggro80/orgs","repos_url":"https://api.github.com/users/aggro80/repos","events_url":"https://api.github.com/users/aggro80/events{/privacy}","received_events_url":"https://api.github.com/users/aggro80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-05T11:16:22Z","updated_at":"2016-10-05T11:43:27Z","closed_at":null,"body":"Almost every project provides api-jar, e.g.\r\n<groupId>org.hibernate.javax.persistence</groupId>\r\n<artifactId>hibernate-jpa-2.1-api</artifactId>\r\n\r\n<groupId>com.fasterxml.jackson.module</groupId>\r\n<artifactId>jackson-module-jaxb-annotations</artifactId>\r\n\r\nThis makes it possible to use various annotations in your own api-packages and share those without heavy dependencies. But Lombok is different, there is no public lombok-api.jar provided with the lombok.jar. Instead one is adviced to create api.jar yourself. Sure, I could create it but how do I then distribute it. I don't understand why doesn't lombok provide api.jar at the same time when it distributes the lombok.jar, because then it would be trivial and easy to use.\r\n\r\nThis is a bit of a showstopper for using Lombok in any api. Especially since the work-a-round, delombok doesn't work properly ( https://github.com/rzwitserloot/lombok/issues/219 ). I would imagine that creating such a jar should be quite trivial if it can be created with a single command?"},"comment":{"url":"https://api.github.com/repos/rzwitserloot/lombok/issues/comments/251651773","html_url":"https://github.com/rzwitserloot/lombok/issues/1204#issuecomment-251651773","issue_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1204","id":251651773,"user":{"login":"Maaartinus","id":2324516,"avatar_url":"https://avatars.githubusercontent.com/u/2324516?v=3","gravatar_id":"","url":"https://api.github.com/users/Maaartinus","html_url":"https://github.com/Maaartinus","followers_url":"https://api.github.com/users/Maaartinus/followers","following_url":"https://api.github.com/users/Maaartinus/following{/other_user}","gists_url":"https://api.github.com/users/Maaartinus/gists{/gist_id}","starred_url":"https://api.github.com/users/Maaartinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maaartinus/subscriptions","organizations_url":"https://api.github.com/users/Maaartinus/orgs","repos_url":"https://api.github.com/users/Maaartinus/repos","events_url":"https://api.github.com/users/Maaartinus/events{/privacy}","received_events_url":"https://api.github.com/users/Maaartinus/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T11:43:27Z","updated_at":"2016-10-05T11:43:27Z","body":"According to this [SO answer][SO], the `api.jar` is what you need for compiling. That's the whole `lombok.jar` as the annotation work at compile time and you need the whole lombok for it to work.\r\n\r\nAll your example libraries work with annotations used at run time. If you distribute their `*-api.jar`, others can compile them. If you distributed `lombok-api.jar` containing annotations only, no-one could compile it (because of missing getters etc.), so I'm unsure if it could help you.\r\n\r\n[SO]: http://stackoverflow.com/a/9819775/581205"}}
{"actor":{"display_login":"Maaartinus"}}