2019-11-14 16:30:38 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2019-11-14 17:49:27 +01:00
|
|
|
id 'org.jetbrains.kotlin.jvm'
|
2023-04-15 23:38:35 +02:00
|
|
|
alias(libs.plugins.validator)
|
2019-11-14 16:30:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "pl.droidsonroids:jspoon:$jspoon"
|
2021-09-04 12:45:34 +02:00
|
|
|
implementation "org.jsoup:jsoup:$jsoup"
|
2019-11-14 16:30:38 +01:00
|
|
|
|
2021-09-18 11:12:27 +02:00
|
|
|
testImplementation "com.squareup.okhttp3:mockwebserver"
|
2023-04-02 09:17:16 +02:00
|
|
|
implementation libs.retrofit.core
|
|
|
|
implementation libs.retrofit.scalars
|
2020-06-14 23:00:16 +02:00
|
|
|
implementation "pl.droidsonroids.retrofit2:converter-jspoon:$jspoon"
|
2023-05-02 00:03:32 +02:00
|
|
|
implementation libs.retrofit.serialization
|
2019-11-14 16:30:38 +01:00
|
|
|
|
2021-09-18 11:12:27 +02:00
|
|
|
implementation "com.squareup.okhttp3:okhttp-urlconnection"
|
2022-08-20 13:36:04 +02:00
|
|
|
|
2023-09-26 22:46:42 +02:00
|
|
|
testImplementation "io.mockk:mockk-jvm:1.13.8"
|
2019-11-14 16:30:38 +01:00
|
|
|
}
|
2023-04-15 22:39:36 +02:00
|
|
|
|
2023-08-24 23:30:56 +02:00
|
|
|
tasks.withType(Test).configureEach {
|
2023-04-15 22:39:36 +02:00
|
|
|
/**
|
|
|
|
* fix for retrofit https://github.com/square/retrofit/issues/3341
|
|
|
|
*/
|
|
|
|
jvmArgs = ["--add-opens", "java.base/java.lang.invoke=ALL-UNNAMED"]
|
|
|
|
}
|