@ -215,7 +215,7 @@ allprojects {
// apply appropriate license header files .
licenseHeaderFile ( "${rootDir}/gradle/spotless/java.former.license" ) . named ( "older" ) . onlyIfContentMatches ( "^/\\*\\r?\\n.*Copyright ConsenSys AG\\." )
licenseHeaderFile ( "${rootDir}/gradle/spotless/java.former.date.license" ) . named ( "older.year" ) . onlyIfContentMatches ( "^/\\*\\r?\\n.* Copyright \\d{4} ConsenSys AG\\." )
licenseHeaderFile ( "${rootDir}/gradle/spotless/java.current.license" ) . named ( "current" ) . onlyIfContentMatches ( "^(?!/\\*\\r?\\n \\*.*ConsenSys AG\\.)" )
licenseHeaderFile ( "${rootDir}/gradle/spotless/java.current.license" ) . named ( "current" ) . onlyIfContentMatches ( "^(?!/\\*\\r?\\n \\*.*( ConsenSys AG|Hyperledger Besu) \\.)" )
}
// spotless check applied to build . gradle ( groovy ) files
groovyGradle {
@ -240,7 +240,7 @@ allprojects {
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\\.)" )
licenseHeaderFile ( "${rootDir}/gradle/spotless/java.current.license" , "^pragma solidity.+?" ) . named ( "current" ) . onlyIfContentMatches ( "^(?!/\\*\\r?\\n \\*.*( ConsenSys AG|Hyperledger Besu) \\.)" )
}
}