refactor: adapter 구현중..
This commit is contained in:
+10
-2
@@ -232,8 +232,10 @@ def verifySpotBugsAnalysisFailureContract =
|
||||
throw new GradleException(
|
||||
'verifySpotBugsAnalysisFailureContract: analysis report verifier is not configured')
|
||||
}
|
||||
Closure<List<String>> analysisFailures =
|
||||
rootProject.ext.spotBugsAnalysisFailures as Closure<List<String>>
|
||||
// Raw Closure on purpose. The parameterised form, wrapped across two lines, is
|
||||
// valid Groovy and Gradle runs it, but the IDE's Gradle parser reads the trailing
|
||||
// `>>` as the end of a block and reports a syntax error for the rest of the file.
|
||||
def analysisFailures = rootProject.ext.spotBugsAnalysisFailures as Closure
|
||||
Map<String, String> fixtures = [
|
||||
clean : '<BugCollection><Errors errors="0" missingClasses="0"/></BugCollection>',
|
||||
missing : '<BugCollection><Errors errors="0" missingClasses="1"><MissingClass>fixture.MissingType</MissingClass></Errors></BugCollection>',
|
||||
@@ -339,6 +341,12 @@ configure(subprojects.findAll { it.childProjects.isEmpty() }) {
|
||||
// binding (rationale in README.md). ErrorProne (D5) hooks the same compile tasks: it
|
||||
// auto-injects the JDK 16+ --add-exports/--add-opens forking args, so none are added here.
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
// Pinned, not inherited from the platform. Sources carry non-ASCII — Korean comments and
|
||||
// em dashes inside string literals — so a builder whose default charset is not UTF-8
|
||||
// compiles different bytes than this one does. It is also what the Gradle model hands the
|
||||
// IDE as the project encoding; without it every imported project reports "no explicit
|
||||
// encoding set".
|
||||
options.encoding = 'UTF-8'
|
||||
['-parameters', '-Werror', '-Xlint:deprecation', '-Xlint:unchecked'].each { String compilerArg ->
|
||||
if (!options.compilerArgs.contains(compilerArg)) {
|
||||
options.compilerArgs.add(compilerArg)
|
||||
|
||||
Reference in New Issue
Block a user