microsoft / azure-gradle-plugins

Azure Plugins for Gradle
MIT License
45 stars 28 forks source link

azureFunctionsPackage 1.12.1 generates "The following dependencies could not be found..." #164

Closed alain-marcel closed 1 year ago

alain-marcel commented 1 year ago

The plugin Azure Gradle Plugin generates followin message

The following dependencies could not be found, please check whether related modules have been packaged 
[...\build\classes\java\main]   

A kotlin project does not have classes/java/main. So when using Azure Gradle Plugin, the message appears. I have not tested with other versions of the Azure Gradle Plugin.

Reproduce

I have done a project at https://github.com/alain-marcel/tutorial-alain-azure-function-kotlin-spring-cloud.git to reproduce the issue. The project

The project has two branches:

More information : https://github.com/alain-marcel/tutorial-alain-azure-function-kotlin-spring-cloud/blob/main/README.md

Question

I would like to know if the gradle task azureFunctionsPackage executed in branch spring-cloud-azure fails

Thanks for your response.

alain-marcel commented 1 year ago

I update branch spring-cloud-azure of the project https://github.com/alain-marcel/tutorial-alain-azure-function-kotlin-spring-cloud.git

Then Azure Gradle Plugin

See details in the project

Thanks for your help

alain-marcel commented 1 year ago

On my desktop, I install last version of Azure Function Core Tools (4.0.5148). Now, Azure Gradle Plugin task azureFunctionsRun run and execute http request successfully. I still have warning message indicating java classes directory is not found, but without consequences. I will now try to execute CI/CD on azure devops. If ok, then I will close the ticket

alain-marcel commented 1 year ago

Using implementation("org.springframework.cloud:spring-cloud-starter-task:3.0.2") implementation("org.springframework.cloud:spring-cloud-starter-function-web:4.0.2") implementation("org.springframework.cloud:spring-cloud-function-adapter-azure:3.2.10")

I still have warning message indicating java classes directory is not found, but without consequences.

Locally, application runs locally with bootRun or AzureFunctionsRun. Remotly (on Azure), application also runs ok. I can close the issue