Skip to content

Commit

Permalink
Properly remove ANTLR from runtime classpath
Browse files Browse the repository at this point in the history
Fixes #43
  • Loading branch information
ThexXTURBOXx committed Sep 4, 2023
1 parent e25a0df commit 5bfbd25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ subprojects {
}
}
}

// Workaround for https://github.com/gradle/gradle/issues/820
configurations {
api {
extendsFrom = extendsFrom.findAll { it != configurations.antlr }
}
}
}

application {
Expand Down
1 change: 1 addition & 0 deletions dex-tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies {
implementation(group: 'org.ow2.asm', name: 'asm-commons', version: project.property('asmVersion')) {
exclude(module: 'asm')
}
testImplementation "org.antlr:antlr-runtime:${project.property('antlr3Version')}"
}

tasks.register('bin_gen', JavaExec) {
Expand Down

0 comments on commit 5bfbd25

Please sign in to comment.