mudasar187
12/19/2022, 7:46 PMbuild.gradle.kts
? Any idea how I can check which dependencies i can get rid of that are not in use. There a lot of dependencies and it would be great to do a scan and just remove which one not in use.Gavin Ray
12/19/2022, 7:47 PMspierce7
12/19/2022, 7:48 PMVampire
12/19/2022, 7:51 PMVampire
12/19/2022, 7:52 PMGavin Ray
12/19/2022, 7:54 PMGavin Ray
12/19/2022, 8:33 PMruntimeOnly
(which I've never used before).
Is that correct?
Dependencies which should be removed or changed to runtime-only:
runtimeOnly("io.quarkus:quarkus-arc:2.14.2.Final") (was implementation)
runtimeOnly("io.quarkus:quarkus-jdbc-postgresql:2.14.2.Final") (was implementation)
runtimeOnly("io.quarkus:quarkus-vertx:2.14.2.Final") (was implementation)
runtimeOnly("net.snowflake:snowflake-jdbc:3.13.21") (was implementation)
Vampire
12/19/2022, 9:07 PMruntimeOnly
. JDBC drivers usually match that criterion as they typically are selected by connection URL pattern. This makes the compile classpath smaller which improves compile speed and increases the chance of up-to-dateness and cache hisGavin Ray
12/19/2022, 10:09 PMmudasar187
12/20/2022, 8:27 AMVampire
12/20/2022, 9:47 AMmudasar187
12/20/2022, 12:38 PMVampire
12/20/2022, 12:53 PMruntimeOnly
as you need those classes at runtime, but not to compile the code.Gavin Ray
12/20/2022, 6:03 PMVampire
12/20/2022, 8:48 PM