Skip to content

Commit a6293ee

Browse files
committed
refactor: replace Lombok with Jabel
1 parent 258ed1f commit a6293ee

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
plugins {
22
id 'java'
33
id 'org.jetbrains.intellij' version '0.4.15'
4-
id "io.freefair.lombok" version "4.1.6"
54
}
65

76
group 'com.github.lppedd'
87
version '0.2.0'
98

10-
sourceCompatibility = 1.8
9+
sourceCompatibility = JavaVersion.VERSION_12
1110

1211
repositories {
1312
mavenCentral()
13+
maven { url "https://jitpack.io" }
1414
}
1515

1616
dependencies {
1717
testCompile group: 'junit', name: 'junit', version: '4.12'
18+
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:0.2.0'
1819
}
1920

2021
intellij {
@@ -34,3 +35,9 @@ patchPluginXml {
3435
changeNotes = new File("change_notes/${version.replace('.', '_')}.html").getText('UTF-8')
3536
pluginDescription = new File("plugin_description.html").getText('UTF-8')
3637
}
38+
39+
compileJava {
40+
options.compilerArgs = [
41+
"--release", "8" // Avoid using Java 12 APIs
42+
]
43+
}

lombok.config

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/main/java/com/github/lppedd/cc/angular2/Angular2CommitScopeProvider.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
import com.intellij.psi.util.PsiModificationTracker;
3131
import com.intellij.util.containers.ContainerUtil;
3232

33-
import lombok.var;
34-
3533
/**
3634
* @author Edoardo Luppi
3735
*/
@@ -102,7 +100,7 @@ private Collection<Angular2Module> findSourceModules() {
102100
JSImplicitElementProvider.class,
103101
elementProvider -> {
104102
if (elementProvider.isValid()) {
105-
final Angular2Module module = Angular2EntitiesProvider.getModule(elementProvider);
103+
final var module = Angular2EntitiesProvider.getModule(elementProvider);
106104
ContainerUtil.addIfNotNull(modules, module);
107105
}
108106

0 commit comments

Comments
 (0)