aboutsummaryrefslogtreecommitdiff
path: root/smali
diff options
context:
space:
mode:
authorBen Gruver <bgruv@google.com>2016-07-09 13:42:15 -0700
committerBen Gruver <bgruv@google.com>2016-07-09 13:42:15 -0700
commit07dc76c03f5409dda8ec1f9c36ffbc8546bbbf14 (patch)
tree012f9a25875d575a45517c3911752c4f707cfca8 /smali
parent6c6b9f0845e32ee841b267395bdf77fa9217e83b (diff)
downloadsmali-07dc76c03f5409dda8ec1f9c36ffbc8546bbbf14.tar.gz
Switch to jprante's jflex plugin
Diffstat (limited to 'smali')
-rw-r--r--smali/build.gradle11
1 files changed, 3 insertions, 8 deletions
diff --git a/smali/build.gradle b/smali/build.gradle
index 75001d73..318b5a97 100644
--- a/smali/build.gradle
+++ b/smali/build.gradle
@@ -30,7 +30,7 @@
*/
apply plugin: 'antlr'
-apply plugin: 'jflex'
+apply plugin: 'org.xbib.gradle.plugin.jflex'
buildscript {
repositories {
@@ -46,10 +46,6 @@ configurations {
// Remove the full antlr library that's added by the antlr plugin. We manually
// add the smaller antlr_runtime library instead
compile.exclude group: 'org.antlr', module: 'antlr'
-
- // The jflex lexer doesn't have any runtime dependencies, so remove the dependency
- // that gets added by the jflex plugin
- compile.exclude group: 'de.jflex', module: 'jflex'
}
sourceSets {
@@ -86,7 +82,6 @@ dependencies {
testCompile depends.junit
antlr depends.antlr
- jflex depends.jflex
}
processResources.inputs.property('version', version)
@@ -119,8 +114,8 @@ generateGrammarSource {
outputDirectory = new File(outputDirectory, 'org/jf/smali')
}
-generateJFlexSource {
- outputDirectory = new File(outputDirectory, 'org/jf/smali')
+jflex {
+ generateDir = new File(generateDir, 'org/jf/smali')
}
uploadArchives {