Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server Task Includes TestRuntimeClasspath #164

Open
sghill opened this issue May 16, 2020 · 0 comments
Open

server Task Includes TestRuntimeClasspath #164

sghill opened this issue May 16, 2020 · 0 comments

Comments

@sghill
Copy link

sghill commented May 16, 2020

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

$ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant