@@ -11,7 +11,7 @@ plugins {
1111 id ' java'
1212 id ' application'
1313 id ' antlr'
14- id ' eclipse'
14+ id ' eclipse'
1515 id ' com.diffplug.spotless' version ' 6.21.0'
1616 id ' checkstyle'
1717 id(" com.github.johnrengelman.shadow" ) version " 8.0.0"
@@ -20,39 +20,37 @@ plugins {
2020repositories {
2121 // Use jcenter for resolving dependencies.
2222 // You can declare any Maven/Ivy/file repository here.
23- mavenCentral()
23+ mavenCentral()
2424}
2525
2626dependencies {
2727 // This dependency is used internally, and not exposed to consumers on their own compile classpath.
2828 implementation ' com.google.guava:guava:29.0-jre'
29-
29+
3030 // Use JUnit test framework
3131 testImplementation ' junit:junit:4.13'
3232 antlr ' org.antlr:antlr4:4.11.1'
33-
33+
3434 // Apache Commons CLI
3535 implementation ' commons-cli:commons-cli:1.4'
36-
36+
3737 implementation ' io.github.lisa-analyzer:lisa-program:0.1'
3838 implementation ' io.github.lisa-analyzer:lisa-analyses:0.1'
3939 implementation ' io.github.lisa-analyzer:lisa-sdk:0.1'
4040 implementation ' io.github.lisa-analyzer:lisa-imp:0.1'
4141 implementation group : ' commons-cli' , name : ' commons-cli' , version : ' 1.5.0'
4242 implementation ' io.github.cdimascio:dotenv-java:3.0.0'
43-
43+
4444 implementation ' org.json:json:20210307'
4545
4646 implementation ' org.bouncycastle:bcprov-jdk15on:1.70'
47-
48- implementation ' redis.clients:jedis:6.1.0'
4947}
5048
5149
5250generateGrammarSource {
5351 maxHeapSize = " 64m"
5452 arguments + = [" -visitor" , " -no-listener" ]
55-
53+
5654 doLast {
5755 copy {
5856 from ' build/generated-src/antlr/main/'
@@ -67,7 +65,7 @@ checkstyle {
6765 configFile = file(new File (rootProject. projectDir, ' checkstyle-config.xml' ))
6866 sourceSets = []
6967 showViolations = true
70- toolVersion ' 8.38'
68+ toolVersion ' 8.38'
7169}
7270
7371checkstyleTest. enabled = false
@@ -97,23 +95,23 @@ spotless {
9795 java {
9896 // tabs, no spaces
9997 indentWithTabs()
100-
101- // keep imports clean
102- importOrder()
98+
99+ // keep imports clean
100+ importOrder()
103101 removeUnusedImports()
104-
102+
105103 // use the eclipse formatting with the one provided with the project
106104 eclipse(). configFile(new File (rootProject. projectDir, ' spotless-formatting.xml' ))
107-
108- target ' src/**/*.java'
105+
106+ target ' src/**/*.java'
109107 // ignore generated code
110108 targetExclude ' **/build/generated/**/*.java'
111109 targetExclude ' **/build/generated-src/**/*.java'
112110 targetExclude ' **/target/generated-sources/**/*.java'
113111 }
114112 antlr4 {
115113 target ' src/*/antlr/**/*.g4'
116- antlr4Formatter()
114+ antlr4Formatter()
117115 }
118116}
119117
@@ -122,11 +120,11 @@ spotlessJava {
122120 dependsOn ' compileJava' , ' compileTestJava' , ' processTestResources' , ' spotlessAntlr4'
123121}
124122
125- spotlessJavaCheck {
123+ spotlessJavaCheck {
126124 finalizedBy ' spotlessErrorMessage'
127125}
128126
129- spotlessAntlr4Check {
127+ spotlessAntlr4Check {
130128 finalizedBy ' spotlessErrorMessage'
131129}
132130
0 commit comments