| Line 77... |
Line 77... |
| 77 |
// OkHttp dropped Apr 2026 — standardised on Apache HttpClient via HttpClientFactory.
|
77 |
// OkHttp dropped Apr 2026 — standardised on Apache HttpClient via HttpClientFactory.
|
| 78 |
implementation 'org.threeten:threetenbp:1.3.1'
|
78 |
implementation 'org.threeten:threetenbp:1.3.1'
|
| 79 |
|
79 |
|
| 80 |
testImplementation 'junit:junit:4.13.2'
|
80 |
testImplementation 'junit:junit:4.13.2'
|
| 81 |
testImplementation 'org.mockito:mockito-core:3.12.4'
|
81 |
testImplementation 'org.mockito:mockito-core:3.12.4'
|
| - |
|
82 |
// Test-only: rasterizes generated PDFs to PNG for golden-image diffing. Must NOT leak into compile/runtime/WAR.
|
| - |
|
83 |
testImplementation 'org.apache.pdfbox:pdfbox:2.0.27'
|
| 82 |
|
84 |
|
| 83 |
|
85 |
|
| 84 |
}
|
86 |
}
|
| 85 |
|
87 |
|
| - |
|
88 |
// Forward the golden-capture flag into the forked test JVM so `-DcaptureGolden=true` re-records baselines.
|
| - |
|
89 |
test {
|
| - |
|
90 |
systemProperty 'captureGolden', System.getProperty('captureGolden', 'false')
|
| - |
|
91 |
}
|
| - |
|
92 |
|
| 86 |
// Lint guard: forbid direct OkHttp / unconfigured Apache HttpClient construction outside
|
93 |
// Lint guard: forbid direct OkHttp / unconfigured Apache HttpClient construction outside
|
| 87 |
// HttpClientFactory. Failing this task => failing build. See HttpClientFactory.java for
|
94 |
// HttpClientFactory. Failing this task => failing build. See HttpClientFactory.java for
|
| 88 |
// the sanctioned construction path.
|
95 |
// the sanctioned construction path.
|
| 89 |
task lintHttpClients(type: Exec) {
|
96 |
task lintHttpClients(type: Exec) {
|
| 90 |
workingDir = rootProject.projectDir
|
97 |
workingDir = rootProject.projectDir
|