zeroturnaround / gradle-jrebel-plugin

The plugin generates rebel.xml configuration file for the Gradle-based project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated warnings with Gradle 6

ewsachse opened this issue · comments

I am seeing these deprecated warnings with Gradle 6. I am using version 1.1.9 of the plugin

Property 'alwaysGenerate' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'defaultResourcesDirectory' has @input annotation used on property of type 'File'. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'defaultWebappDirectory' has @input annotation used on property of type 'File'. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'packaging' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelModel' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'showGenerated' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'war' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelDsl.alwaysGenerate' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelDsl.packaging' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelDsl.rebelXmlDirectory' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelDsl.relativePath' has @input annotation used on property of type 'File'. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelDsl.rootPath' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelDsl.webappDirectory' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
Property 'rebelDsl.classpath.resources.$0.targetSet' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.

Hello!

Thank you for the issue report. I am informing you that we have released a new version 1.1.10 of the plugin which will not show these warning when running the generateRebel task.

I updated to the new version, and most of the warnings went away. However, I still see this one when I run this gradle command

gradlew build --warning-mode all

Task :my-project:generateRebel UP-TO-DATE
Property 'rebelDsl.classpath.resources.$0.targetSet' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.

We do not do anything complicated with the plugin. We just add it as a dependency to the jar task like this

jar.dependsOn(generateRebel)

We configure it in the build.gradle like this

rebel {
    showGenerated = false
    
    classpath {
        // don't add the default classes target directory
        omitDefaultClassesDir = true
    
        // don't add the default resources directory
        omitDefaultResourcesDir = true
    
        resource {
            directory = "${projectDir}/bin/main"
		}
    }
}

I tried upgrading to Gradle 7.0, and now I get this error from gradle

`

Task :my-project:generateRebel FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem was found with the configuration of task ':my-project:generateRebel' (type 'IncrementalRebelGenerateTask').

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org
    `

Looks like commit 617a2ec aims to fix this

Was fixed in commit 617a2ec