This message was deleted.
# community-support
s
This message was deleted.
e
you should probably be using https://docs.gradle.org/current/userguide/jvm_test_suite_plugin.html instead of custom configurations for setting up
smokeTest
👍 1
but basically it's the Java plugin that's setting up each Java
sourceSet
to have a
implementation
,
api
, etc. configuration, using those for the Java compilation
🙌 1
j
Can something useful be done with custom configurations without Ant?
Yes. It has nothing to do with Ant actually… If you want to understand the concept better (shameless plug):

https://www.youtube.com/watch?v=igug9tbl4J4&list=PLWQK2ZdV4Yl2k2OmC_gsjDpdIBTN0qqkE&t=0sâ–ľ

You can jump to min 8, where I start talking about the “Configuration” concept. Basically, when you have a custom configuration like “smokeTest” you need some place where you use (i.e. resolve) it. Usually you set it as an input to a task. The task will then treat it as a “collection of files” and as soon as Gradle gets to the point where the task needs the files, it will “resolve” the dependencies (interprete the metadata / download the Jars). In your example, you would probably set “smokeTest” as the
classpath
of a
Test
Task.
đź’Ż 1
b
I was busy otherwise, but thank you both for the helpful feedback. Jendrik Johannes' videos are great! They clarified a lot of things for me and will help me improve our build scripts.
🙏 1