#import "/_scaffold.html" as main> <@main.scaffold title="snapshot">
You can use the edge release from maven using the projectlombok.org repository. This requires:
repositories sectiondependencies section, specifying version edge-SNAPSHOT.annotationProcessorPaths section, specifying version edge-SNAPSHOT.These sections in your pom file should look like this:
<repositories> <repository> <id>projectlombok.org</id> <url>https://projectlombok.org/edge-releases</url> </repository> </repositories>
<dependencies> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>edge-SNAPSHOT</version> <scope>provided</scope> </dependency> </dependencies>
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <annotationProcessorPaths> <path> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>edge-SNAPSHOT</version> </path> </annotationProcessorPaths> </configuration> </plugin> </plugins> </build>
You can use the edge release from gradle using the projectlombok.org repository:
repositories {
mavenCentral()
maven { url 'https://projectlombok.org/edge-releases' }
}
plugins {
id 'net.ltgt.apt' version '0.10'
}
dependencies {
compileOnly 'org.projectlombok:lombok:edge-SNAPSHOT'
apt 'org.projectlombok:lombok:edge-SNAPSHOT'
}
Cutting edge a bit too gutsy for you? You can grab the stable release instead.