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

Plugin produces exception when used in a multi project build #46

Closed
graemerocher opened this issue Apr 21, 2020 · 4 comments
Closed

Plugin produces exception when used in a multi project build #46

graemerocher opened this issue Apr 21, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@graemerocher
Copy link

graemerocher commented Apr 21, 2020

When using the plugin as a subproject in a multi-project build the following error occurs:

java.io.IOException: Resource not found: /version.txt
        at org.apache.commons.io.IOUtils.resourceToURL(IOUtils.java:1372)
        at org.apache.commons.io.IOUtils.resourceToString(IOUtils.java:1293)
        at org.apache.commons.io.IOUtils.resourceToString(IOUtils.java:1272)
        at com.microsoft.azure.plugin.functions.gradle.telemetry.TelemetryAgent.<init>(TelemetryAgent.java:64)
        at com.microsoft.azure.plugin.functions.gradle.telemetry.TelemetryAgent.<clinit>(TelemetryAgent.java:60)
        at com.microsoft.azure.plugin.functions.gradle.AzureFunctionsPlugin.apply(AzureFunctionsPlugin.java:27)
        at com.microsoft.azure.plugin.functions.gradle.AzureFunctionsPlugin.apply(AzureFunctionsPlugin.java:19)
        at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:43)
        at org.gradle.api.internal.plugins.RuleBasedPluginTarget.applyImperative(RuleBasedPluginTarget.java:51)
        at org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:181)
        at org.gradle.api.internal.plugins.DefaultPluginManager.access$300(DefaultPluginManager.java:51)

To reproduce checkout https://github.com/micronaut-projects/micronaut-starter

Then uncomment the plugin from starter-azure-function/build.gradle

Then run ./gradlew assemble you will see the exception

@andxu
Copy link
Contributor

andxu commented Apr 22, 2020

@graemerocher Thank you for your observation, I can repro using your repo, I will fix it in next release(not more than 4 weeks)
image

@andxu andxu self-assigned this Apr 22, 2020
@andxu andxu added the bug Something isn't working label Apr 22, 2020
@andxu
Copy link
Contributor

andxu commented Apr 24, 2020

#47

@andxu
Copy link
Contributor

andxu commented Apr 24, 2020

Release new version 1.2.0

@graemerocher
Copy link
Author

Thank you!

@andxu andxu closed this as completed Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants