Skip to content

Commit

Permalink
update build.gradle to test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gongxuanzhang committed Jun 4, 2024
1 parent 97e0200 commit 9fb6d4e
Showing 1 changed file with 53 additions and 2 deletions.
55 changes: 53 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,58 @@ def determineCommitId() {
}
}

def spotlessApplyModules = ['transaction-coordinator','server-common']
def excludedSpotlessModules = ['clients','connect',
'api',
'basic-auth-extension',
'file',
'json',
'mirror',
'mirror-client',
'runtime',
'test-plugins',
'transforms',
'core',
'examples',
'generator',
'group-coordinator',
'jmh-benchmarks',
'log4j-appender',
'metadata',
'raft',
'server',
'shell',
'storage',
'storage-api', // in settings.gradle rename
'streams',
'examples',
'streams-scala',
'test-utils',
'upgrade-system-tests-0100',
'upgrade-system-tests-0101',
'upgrade-system-tests-0102',
'upgrade-system-tests-0110',
'upgrade-system-tests-10',
'upgrade-system-tests-11',
'upgrade-system-tests-20',
'upgrade-system-tests-21',
'upgrade-system-tests-22',
'upgrade-system-tests-23',
'upgrade-system-tests-24',
'upgrade-system-tests-25',
'upgrade-system-tests-26',
'upgrade-system-tests-27',
'upgrade-system-tests-28',
'upgrade-system-tests-30',
'upgrade-system-tests-31',
'upgrade-system-tests-32',
'upgrade-system-tests-33',
'upgrade-system-tests-34',
'upgrade-system-tests-35',
'upgrade-system-tests-36',
'upgrade-system-tests-37',
'tools',
'tools-api',
'trogdor']


apply from: file('wrapper.gradle')
Expand Down Expand Up @@ -800,7 +851,7 @@ subprojects {
skipConfigurations = [ "zinc" ]
}

if (JavaVersion.current().isJava11Compatible() && (project.name in spotlessApplyModules)) {
if (JavaVersion.current().isJava11Compatible() && (project.name !in excludedSpotlessModules)) {
apply plugin: 'com.diffplug.spotless'
spotless {
java {
Expand Down

0 comments on commit 9fb6d4e

Please sign in to comment.