Skip to content

ycmag/lombok-intellij-plugin

 
 

Repository files navigation

lombok-intellij-plugin Build Status Code Coverage Donate

Join the chat at https://gitter.im/mplushnikov/lombok-intellij-plugin

Plugin for [IntelliJ IDEA](http://plugins.jetbrains.com/plugin/6317?pr=idea plugin) to support Lombok annotations.

Provides support for lombok annotations to write great Java code with IntelliJ IDEA.

Last version (0.11) released on 04.04.2016

Eighteenth version of plugin released. Bugfixes, performance optimization and new features support!

Install it automatically from IntelliJ Idea plugin repository.

Tested and supports IntelliJ versions: 12.1.7, 13.1.6, 14.1.4, 15.0.4, 2016.1.1

Updated support for IntelliJ 11.1.5 by plugin version 0.11!

Last support for IntelliJ 10.5.4 by plugin version 0.8.7

With this plugin your IntelliJ can recognize all of generated getters, setters and some other things from lombok project, so that you get code completion and are able to work without errors stating the methods don't exists.

Features / Supports

Installation

Plugin Installation

  • Using IDE built-in plugin system on Windows:
    • File > Settings > Plugins > Browse repositories... > Search for "lombok" > Install Plugin
  • Using IDE built-in plugin system on MacOs:
    • Preferences > Settings > Plugins > Browse repositories... > Search for "lombok" > Install Plugin
  • Manually:
    • Download the latest release and install it manually using Preferences > Plugins > Install plugin from disk...

Restart IDE.

Required IntelliJ Configuration

In your project: Click Preferences -> "Build, Execution, Deployment" -> "Compiler, Annotation Processors". Click Enable Annotation Processing

Afterwards you might need to do a complete rebuild of your project via Build -> "Rebuild Project".

Lombok project dependency

Make sure you have Lombok dependency added to your project. This plugin does not automatically add it for you.

If you are using Gradle/Maven/Ivy, see example below:

Gradle

In your build.gradle:

//'compile' can be changed to 'compileOnly' for Gradle 2.12+
// or 'provided' if using 'propdeps' plugin from SpringSource
compile "org.projectlombok:lombok:1.16.8"
Maven

In your pom.xml:

<dependencies>
	<dependency>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<version>1.16.8</version>
		<scope>provided</scope>
	</dependency>
</dependencies>
Ivy

In your ivy.xml:

<dependency org="org.projectlombok" name="lombok" rev="1.16.8" conf="build" />

IntelliJ and Eclipse compiler

If you're using Eclipse compiler with lombok, try this setup:

  • install plugin
  • make sure Lombok dependency is added to the project
  • change compiler setting:
    • ... > Compiler > Java Compiler > Use Compiler: Eclipse
    • ... > Compiler > Annotation Processors > Enable annotation processing: checked (default configuration)
    • ... > Compiler > Additional build process VM options: -javaagent:lombok.jar

Developed By

[@mplushnikov Michail Plushnikov] (https://github.com/mplushnikov)

Contributors

Supporters

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

License

Copyright (c) 2011-2016 Michail Plushnikov. See the LICENSE file for license rights and limitations (BSD).

About

Lombok Plugin for IntelliJ IDEA

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.9%
  • Other 0.1%