|
|
@ -220,7 +220,16 @@ allprojects { |
|
|
|
} |
|
|
|
} |
|
|
|
// Below this line are currently only license header tasks |
|
|
|
// Below this line are currently only license header tasks |
|
|
|
format 'bash', { target '**/*.sh' } |
|
|
|
format 'bash', { target '**/*.sh' } |
|
|
|
format 'sol', { target '**/*.sol' } |
|
|
|
format 'Solidity', { |
|
|
|
|
|
|
|
target '**/*.sol' |
|
|
|
|
|
|
|
targetExclude '**/src/reference-test/**', '**/src/main/generated/**', '**/src/test/generated/**', '**/src/jmh/generated/**' |
|
|
|
|
|
|
|
trimTrailingWhitespace() |
|
|
|
|
|
|
|
endWithNewline() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
licenseHeaderFile("${rootDir}/gradle/spotless/java.former.license","^pragma solidity.+?").named("former").onlyIfContentMatches("^/\\*\\r?\\n.*Copyright ConsenSys AG\\.") |
|
|
|
|
|
|
|
licenseHeaderFile("${rootDir}/gradle/spotless/java.former.date.license","^pragma solidity.+?").named("former.date").onlyIfContentMatches("^/\\*\\r?\\n.* Copyright \\d{4} ConsenSys AG\\.") |
|
|
|
|
|
|
|
licenseHeaderFile("${rootDir}/gradle/spotless/java.current.license","^pragma solidity.+?").named("current").onlyIfContentMatches("^(?!/\\*\\r?\\n \\*.*ConsenSys AG\\.)") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach { |
|
|
|
tasks.withType(JavaCompile).configureEach { |
|
|
|