Java Tips and Tricks

How to Add Lombok to a Java/Gradle Project in IntelliJ IDEA

Open IntelliJ IDEA Preferences and install Lombok plugin.

Enable Annotation Processing

Add Lombok to your build.gradle

dependencies {
	compileOnly 'org.projectlombok:lombok:1.18.8'
	annotationProcessor 'org.projectlombok:lombok:1.18.8'
    ...
}

How to Use Java Keytool Command

Most Common Commands

List Certificates in Keystore

What

Command

Summary View

keytool -list -cacerts -storepass changeit

Linux: keytool -list -cacerts -storepass changeit | grep "string" 

Cmd: keytool -list -cacerts -storepass changeit | findstr "string" 

Pwsh: keytool -list -cacerts -storepass changeit | Select-String "string" 

Detail View keytool -list -v -cacerts -storepass changeit
Specific Certificate keytool -list -cacerts -storepass changeit -alias root
Specific