Skip to content

Commit

Permalink
Use compileClasspath instead of compileOnly configuration
Browse files Browse the repository at this point in the history
Fixes #35
  • Loading branch information
hurricup committed Apr 13, 2021
1 parent b7aab41 commit d6c966d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class GenerateLexer extends BaseTask {
newArgs.add(flexFile)
args(newArgs)

classpath project.configurations.compileOnly.files.findAll({ it.name.startsWith("jflex")})
classpath project.configurations.compileClasspath.files.findAll({ it.name.startsWith("jflex") })

purgeFiles(targetFile)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class GenerateParser extends BaseTask {
"testFramework"
]

classpath project.configurations.compileOnly.files.findAll({
for(lib in requiredLibs){
if(it.name.equalsIgnoreCase("${lib}.jar") || it.name.startsWith("${lib}-")){
classpath project.configurations.compileClasspath.files.findAll({
for (lib in requiredLibs) {
if (it.name.equalsIgnoreCase("${lib}.jar") || it.name.startsWith("${lib}-")) {
return true;
}
}
Expand Down

0 comments on commit d6c966d

Please sign in to comment.