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

Extension properties cannot be reassigned #22

Open
marceloverdijk opened this issue Mar 13, 2019 · 1 comment
Open

Extension properties cannot be reassigned #22

marceloverdijk opened this issue Mar 13, 2019 · 1 comment

Comments

@marceloverdijk
Copy link

When using the plugin with a build.gradle.kts Kotlin build script and setting:

azureWebApp {
    appName = "" // TODO
    pricingTier = "" // TODO
    resourceGroup = "" // TODO

I get the errors:

* What went wrong:
Script compilation errors:

  Line 106:     appName = ""        
                ^ Val cannot be reassigned

  Line 107:     pricingTier = ""        
                ^ Val cannot be reassigned

  Line 107:     pricingTier = ""        
                              ^ Type mismatch: inferred type is String but PricingTier! was expected

  Line 108:     resourceGroup = ""        
                ^ Val cannot be reassigned

Is it because these properties in https://github.com/lenala/azure-gradle-plugins/blob/master/azure-webapp-gradle-plugin/src/main/java/lenala/azure/gradle/webapp/AzureWebAppExtension.java#L15 are private and there is no setter?

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