Skip to content

Commit

Permalink
Upgrade to antlr 4.7 to avoid enum constant warnings on NullUsageProc…
Browse files Browse the repository at this point in the history
…essor
  • Loading branch information
jkschneider committed Apr 19, 2017
1 parent 7b08c95 commit 4e67aa7
Show file tree
Hide file tree
Showing 39 changed files with 12,826 additions and 12,343 deletions.
21 changes: 15 additions & 6 deletions rewrite-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,35 @@ buildscript {
}

dependencies {
classpath 'me.champeau.gradle:antlr4-gradle-plugin:0.1'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
}
}

apply plugin: 'me.champeau.gradle.antlr4'
apply plugin: 'com.github.johnrengelman.shadow'

antlr4.output = new File('src/main/java/com/netflix/rewrite')
antlr4.extraArgs = ['-package', 'com.netflix.rewrite']

configurations {
compile.extendsFrom antlr4
compile.extendsFrom compileShaded
}

// run manually with -x compileKotlin when you need to regenerate
task generateAntlrSources(type: JavaExec) {
main = 'org.antlr.v4.Tool'

args = [
'-o', 'src/main/java/com/netflix/rewrite/grammar',
'-package', 'com.netflix.rewrite.grammar',
'-visitor'
] + project.fileTree(dir: 'src/main/antlr', include: '**/*.g4').collect { it.path }

classpath = sourceSets.main.runtimeClasspath
}

dependencies {
compileShaded files("${System.getProperty('java.home')}/../lib/tools.jar")
compileShaded 'org.eclipse.jgit:org.eclipse.jgit:4.4.1.201607150455-r'

compile 'org.antlr:antlr4:4.7'

compile 'eu.infomas:annotation-detector:latest.release'
compile 'org.slf4j:slf4j-api:1.7.+'
compile 'commons-lang:commons-lang:2.6'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
[The "BSD licence"]
Copyright (c) 2015 Adam Taylor
Expand Down
File renamed without changes.
File renamed without changes.
28 changes: 0 additions & 28 deletions rewrite-core/src/main/java/com/netflix/rewrite/Rewrite.java

This file was deleted.

Loading

0 comments on commit 4e67aa7

Please sign in to comment.