Open sghill opened 4 years ago
In order to approximate the behavior of a deployed server As a plugin developer I want the gradle-jpi-plugin to exclude test dependencies
Today the server task is loading plugins from the testRuntimeClasspath.
plugins { id 'org.jenkins-ci.jpi' version '0.39.0' } jenkinsPlugin { coreVersion = '2.222.3' } dependencies { testImplementation 'org.jenkins-ci.plugins:git:4.0.1' }
After running ./gradlew server
./gradlew server
$ find work/plugins -name *.[hj]pi | sort work/plugins/antisamy-markup-formatter.jpi work/plugins/apache-httpcomponents-client-4-api.hpi work/plugins/bouncycastle-api.jpi work/plugins/command-launcher.jpi work/plugins/credentials.hpi work/plugins/display-url-api.hpi work/plugins/git-client.hpi work/plugins/git.hpi work/plugins/jaxb.jpi work/plugins/jdk-tool.jpi work/plugins/jsch.hpi work/plugins/junit.jpi work/plugins/mailer.hpi work/plugins/matrix-auth.jpi work/plugins/matrix-project.jpi work/plugins/scm-api.hpi work/plugins/script-security.jpi work/plugins/ssh-credentials.hpi work/plugins/structs.hpi work/plugins/trilead-api.jpi work/plugins/ui-samples-plugin.hpi work/plugins/windows-slaves.jpi work/plugins/workflow-api.jpi work/plugins/workflow-scm-step.hpi work/plugins/workflow-step-api.hpi
In order to approximate the behavior of a deployed server As a plugin developer I want the gradle-jpi-plugin to exclude test dependencies
Today the server task is loading plugins from the testRuntimeClasspath.
After running
./gradlew server