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

Configuration parameters have no effect during plugin execution #1

Closed
jgoldhammer opened this issue Sep 29, 2019 · 2 comments
Closed
Labels

Comments

@jgoldhammer
Copy link

At first thanks for your plugin.
I want to use it in my gradle build, but currently I am not able to modify the defaults from the plugin.

It seems that the configured values are not used in the plugin execution.

I have prepared a minimal example here: https://github.com/jgoldhammer/truststorebuilder-gradle-plugin-demo

My changes are:

  • I have renamed the certs directory to certs-1
  • I have used the new directory certs-1 in build.gradle

So when entering the command

./gradlew buildTrustStore                                                                                    

gradle fails with following error message.

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/jgoldhammer/dev/source/sandbox/truststorebuilder-gradle-plugin-demo/build.gradle' line: 2

* What went wrong:
An exception occurred applying plugin request [id: 'de.chkpnt.truststorebuilder', version: '0.2.57']
> Failed to apply plugin [id 'de.chkpnt.truststorebuilder']
   > Directory '/Users/jgoldhammer/dev/source/sandbox/truststorebuilder-gradle-plugin-demo/src/main/certs' does not exist.

Any suggestions here? I guess this is a bug?
Thanks for your help.

@jgoldhammer jgoldhammer changed the title Configuration of inputdir and all other properties are not used in plugin Configuration parameters have no effect during plugin execution Sep 29, 2019
@chkpnt
Copy link
Owner

chkpnt commented Oct 1, 2019

Ups. You are absolutely right. Thanks for pointing that out!

The cause is I'm trying to use the plugin's extension (trustStoreBuilder { ... }) during the evaulation phase. That is a fault.

I have an approach to a solution in my mind and hope to find some time for its implemention in the next days.

@chkpnt chkpnt added the bug label Oct 1, 2019
@chkpnt chkpnt closed this as completed in b59cf80 Oct 5, 2019
@chkpnt chkpnt reopened this Oct 5, 2019
@chkpnt
Copy link
Owner

chkpnt commented Oct 5, 2019

Okay, the configuration should now be respected by the plugin; I've just publish a new version.

The demonstrator is updated, too.

@chkpnt chkpnt closed this as completed Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants