-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - Introduce gradleLint configuration for classpath isolation (#229)
* remove bad package for org.ow2.asm * initial work to create own classpath for lint tasks * initial work to create own classpath for lint tasks * fix configuration creation for lint * fix report task classpath * remove asm from shading * add asm back to shaded dependencies for lint plugin
- Loading branch information
Showing
6 changed files
with
48 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/groovy/com/netflix/nebula/lint/plugin/AbstractLintTask.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.netflix.nebula.lint.plugin | ||
|
||
import org.gradle.api.DefaultTask | ||
import org.gradle.api.file.FileCollection | ||
import org.gradle.api.tasks.Classpath | ||
|
||
class AbstractLintTask extends DefaultTask { | ||
private FileCollection lintClassPath | ||
|
||
/** | ||
* Classpath containing lint dependencies for the task | ||
*/ | ||
@Classpath | ||
FileCollection getLintClassPath() { | ||
return lintClassPath | ||
} | ||
|
||
void setLintClassPath(FileCollection lintClassPath) { | ||
this.lintClassPath = lintClassPath | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters