I am kind of hacking gradle to let me publish sql resources to artifactory. I am publishing sql scripts as jar files so I can declare the scripts as dependencies. (BTW I think there should be a gradle feature that allows publisihng/consuming non-java dependencies)
When I declare dependencies like this:
testRuntime(group: 'com.softwareag.db.cdbs', name: 'mssql-analysis', version: 'latest.milestone')
this allows me to find the jar file on disk and unzip it for use.
However, I do not want these dependencies to be added to the classpath when running tests (windows classpath too long issues).
Is there a way I can apply a pattern to not put any dependency in the classpath for test execution and IDE generation that has ‘com.softwareag.db.cdbs’ in it?