File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
dd-java-agent/instrumentation/junit/junit-5.3 Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,17 @@ configurations.matching { it.name.startsWith('test') }.configureEach {
6565 }
6666}
6767
68+ // Reject RC (Release Candidate) and M (Milestone) versions for latest5Test and latestDepTest configurations
69+ configurations. matching { it. name. startsWith(' latest5Test' ) || it. name. startsWith(' latestDepTest' ) }. configureEach {
70+ it. resolutionStrategy. componentSelection. all { ComponentSelection selection ->
71+ def version = selection. candidate. version
72+ if ((selection. candidate. group == ' org.junit.platform' || selection. candidate. group == ' org.junit.jupiter' ) &&
73+ (version. matches(' .*-RC.*' ) || version. matches(' .*-M\\ d+.*' ))) {
74+ selection. reject(" Skipping pre-release version: ${ version} " )
75+ }
76+ }
77+ }
78+
6879tasks. named(" compileLatestDepTestJava" , JavaCompile ) {
6980 configureCompiler(it, 17 , JavaVersion . VERSION_1_8 )
7081}
Original file line number Diff line number Diff line change @@ -57,6 +57,17 @@ configurations.matching { it.name.startsWith('test') }.configureEach {
5757 }
5858}
5959
60+ // Reject RC (Release Candidate) and M (Milestone) versions for latestDepTest configurations
61+ configurations. matching { it. name. startsWith(' latestDepTest' ) }. configureEach {
62+ it. resolutionStrategy. componentSelection. all { ComponentSelection selection ->
63+ def version = selection. candidate. version
64+ if ((selection. candidate. group == ' org.junit.platform' || selection. candidate. group == ' org.junit.jupiter' ) &&
65+ (version. matches(' .*-RC.*' ) || version. matches(' .*-M\\ d+.*' ))) {
66+ selection. reject(" Skipping pre-release version: ${ version} " )
67+ }
68+ }
69+ }
70+
6071tasks. named(" compileLatestDepTestJava" , JavaCompile ) {
6172 configureCompiler(it, 17 , JavaVersion . VERSION_1_8 )
6273}
You can’t perform that action at this time.
0 commit comments