-
Notifications
You must be signed in to change notification settings - Fork 3
Backport to branch(3) : Fix to avoid using test-fixtures plugin #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
plugins { | ||
id 'net.ltgt.errorprone' version "${errorpronePluginVersion}" | ||
id "com.github.spotbugs" version "${spotbugsPluginVersion}" | ||
} | ||
|
||
dependencies { | ||
implementation project(':client') | ||
implementation group: 'info.picocli', name: 'picocli', version: "${picoCliVersion}" | ||
implementation group: 'org.assertj', name: 'assertj-core', version: "${assertjVersion}" | ||
implementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: "${junitVersion}" | ||
runtimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: "${junitVersion}" | ||
|
||
// for Error Prone | ||
errorprone "com.google.errorprone:error_prone_core:${errorproneVersion}" | ||
errorproneJavac "com.google.errorprone:javac:${errorproneJavacVersion}" | ||
|
||
// for SpotBugs | ||
spotbugs "com.github.spotbugs:spotbugs:${spotbugsVersion}" | ||
compileOnly "com.github.spotbugs:spotbugs-annotations:${spotbugsVersion}" | ||
testCompileOnly "com.github.spotbugs:spotbugs-annotations:${spotbugsVersion}" | ||
} | ||
|
||
spotless { | ||
java { | ||
target 'src/*/java/**/*.java' | ||
importOrder() | ||
removeUnusedImports() | ||
googleJavaFormat('1.7') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other modules (like
|
||
} | ||
} | ||
|
||
spotbugs { | ||
ignoreFailures = false | ||
showStackTraces = true | ||
showProgress = true | ||
effort = 'default' | ||
reportLevel = 'default' | ||
maxHeapSize = '1g' | ||
extraArgs = [ '-nested:false' ] | ||
jvmArgs = [ '-Duser.language=en' ] | ||
} | ||
|
||
spotbugsMain.reports { | ||
html.enabled = true | ||
} | ||
|
||
spotbugsTest.reports { | ||
html.enabled = true | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ include 'client' | |
include 'schema-loader' | ||
include 'generic-contracts' | ||
include 'table-store' | ||
include 'common-test' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
common-test
module is a library for test utilities. To correctly expose its dependencies to consumer modules, it should use thejava-library
plugin and theapi
dependency configuration.java-library
plugin: This plugin should be applied to enable theapi
andimplementation
configurations for better dependency management.api
for exposed dependencies:picocli
: Its types are used in the public API ofCommandLineTestUtils
, so it must be anapi
dependency.junit-jupiter-api
: This should also be anapi
dependency so that projects usingcommon-test
can use JUnit APIs for their tests without declaring the dependency themselves.