Vladimir Sitnikov
75754ce637
ci: add randomized matrix for better test coverage
...
See https://github.com/vlsi/github-actions-random-matrix
2023-05-18 07:54:25 +03:00
Vladimir Sitnikov
eedabdd6c0
feat: use ServiceLoader to find implementations instead of searching classes in jars ( #5885 )
...
ServiceLoader is Java standard approach for locating implementaitons,
and it allows pluggability without relying on a filesystem layout.
Fixes https://github.com/apache/jmeter/issues/5883
2023-05-11 16:20:17 +03:00
Mend Renovate
fc230f6a24
fix(deps): update dependency checkstyle to v10.11.0 ( #5913 )
2023-05-11 15:10:53 +03:00
Renovate Bot
e8be4016d6
fix(deps): update dependency com.google.errorprone:error_prone_core to v2.19.1
...
ErrorProne brings StringCaseLocaleUsage verification that forbids the use of default locale
See https://errorprone.info/bugpattern/StringCaseLocaleUsage
Closes https://github.com/apache/jmeter/pull/5914
2023-05-11 13:30:42 +03:00
Mend Renovate
2a2d24621a
fix(deps): update org.checkerframework ( #5887 )
2023-05-11 11:49:46 +03:00
Vladimir Sitnikov
b8a1a6369c
chore: add checksum for checkerframework-gradle-plugin 0.6.27
...
Unfortunately, it is not yet signed with PGP
2023-05-11 10:56:55 +03:00
Vladimir Sitnikov
6a0de9b700
style: run "field can be static"
...
See https://errorprone.info/bugpattern/FieldCanBeStatic
# Conflicts:
# build-logic/verification/src/main/kotlin/build-logic.errorprone.gradle.kts
2023-05-05 12:25:59 +03:00
Vladimir Sitnikov
049cc3a694
style: run "field may be final" inspection
...
See https://errorprone.info/bugpattern/FieldCanBeFinal
2023-05-05 12:25:59 +03:00
Vladimir Sitnikov
12aefb0c70
style: apply "private method can be static" inspection
...
See https://errorprone.info/bugpattern/MethodCanBeStatic
2023-05-05 12:25:56 +03:00
Vladimir Sitnikov
11466eab44
style: replace iterator with enhanced for loop
2023-05-04 13:37:09 +03:00
Vladimir Sitnikov
8b413c0e1e
style: remove unnecessary default cases in enum switch
...
See https://errorprone.info/bugpattern/UnnecessaryDefaultInEnumSwitch
2023-05-04 13:37:09 +03:00
Vladimir Sitnikov
4a7057c994
style: remove redundant method overrides
...
The redundant overrides for clone are left intact
as they are needed for Sonar rule S2157 - "Cloneables" should implement "clone"
2023-05-04 13:37:09 +03:00
Vladimir Sitnikov
0b371e0de2
chore: execute ErrorProne verifications when running with Java 11+ compiler only
...
ErrorProne requires Java 11, so we can't execute it with Java 8 compiler.
2023-05-04 13:37:09 +03:00
Vladimir Sitnikov
5a993bf23b
chore: remove use of deprecated Object#finalize
2023-05-04 13:37:09 +03:00
Vladimir Sitnikov
df7c8bd15d
chore: add explicit casts from long to double so data loss is visible in the source code
...
See https://errorprone.info/bugpattern/LongDoubleConversion
2023-05-04 13:37:09 +03:00
Vladimir Sitnikov
f1d4844260
chore: fix condition for enableErrorprone so the verification is activated
2023-05-04 13:37:09 +03:00
Vladimir Sitnikov
0a193334c4
chore: add --release 8 when compiling with Java 10+ so the generated bytecode uses Java 8 methods only
...
For instance, overrides like java.nio.DoubleBuffer#clear() do not exist in Java 8,
so without "--release 8" the bytecode will not execute in Java 8.
With --release 8, javac compiles the call to java.nio.Buffer#clear() which
exists in Java 8.
2023-05-01 16:48:00 +03:00
Vladimir Sitnikov
3443047c88
Use © instead of © for javadoc footer to better support non-UTF-8 encodings
...
By default, javadoc uses defaultCharset encoding which is not reliable with non-latin characters
2023-04-30 09:19:47 +03:00
Vladimir Sitnikov
e52305d6a4
chore: use proper junit5 dependencies so the jupiter engine is added to test runtime classpath
2023-04-29 16:41:44 +03:00
Renovate Bot
0c34b9f082
fix(deps): update dependency org.jetbrains.gradle.plugin.idea-ext:org.jetbrains.gradle.plugin.idea-ext.gradle.plugin to v1
...
Fixes https://github.com/apache/jmeter/pull/5866
2023-04-29 11:50:05 +03:00
Renovate Bot
46f02c76df
fix(deps): update spring core to v4.3.30.release
...
Fixes https://github.com/apache/jmeter/pull/5863
2023-04-29 10:34:40 +03:00
Renovate Bot
b9d671dbd7
fix(deps): update dependency org.jetbrains.gradle.plugin.idea-ext:org.jetbrains.gradle.plugin.idea-ext.gradle.plugin to v0.10
...
Fixes https://github.com/apache/jmeter/pull/5857
2023-04-29 10:28:25 +03:00
Vladimir Sitnikov
d50c11e8ec
chore: create separate BOM for dependencies used in tests
...
Moving test versions for testing dependencies to a separate BOM
would make it slightly easier for the consumers to work with regular JMeter dependencies.
In other words, JMeter should not require a specific JUnit 5 version,
so JUnit5 should not be a part of the regular dependencies.
2023-04-28 20:00:40 +03:00
Mend Renovate
0739a2678e
fix(deps): update dependency org.checkerframework:checker to v3.33.0 ( #5846 )
2023-04-28 13:34:13 +03:00
Vladimir Sitnikov
873c188f25
fix(deps): update dependency com.github.spotbugs:com.github.spotbugs.gradle.plugin to v5.0.14
...
Closes https://github.com/apache/jmeter/pull/5829
See https://github.com/spotbugs/spotbugs-gradle-plugin/issues/888
2023-04-28 09:38:03 +03:00
Mend Renovate
ea39208897
fix(deps): update dependency jacoco to v0.8.10 ( #5827 )
2023-04-27 21:04:17 +03:00
Mend Renovate
da18ff51c5
fix(deps): update dependency de.thetaphi.forbiddenapis:de.thetaphi.forbiddenapis.gradle.plugin to v3.5.1 ( #5826 )
2023-04-27 20:21:53 +03:00
Mend Renovate
d135e7e46c
fix(deps): update dependency checkstyle to v10.10.0 ( #5825 )
2023-04-27 20:21:34 +03:00
Mend Renovate
97a5cea3a3
fix(deps): update com.github.vlsi to v1.88 ( #5824 )
2023-04-27 19:52:26 +03:00
Vladimir Sitnikov
1c6625ecb1
chore: add dependency rat.mustRunAfter(:src:dist-check:copyExtraTestLibs)
2023-04-27 18:36:51 +03:00
Vladimir Sitnikov
b073b2393e
chore: remove use of toUpperCase() deprecated function in Kotlin
2023-04-27 15:37:59 +03:00
Vladimir Sitnikov
a9ec76d067
chore: factor build-logic so it is easier to reuse
...
See https://docs.gradle.org/current/userguide/structuring_software_products.html
2023-04-27 14:26:05 +03:00