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

Groovy File deprecation fix part 1 #903

Merged

Conversation

arunvenmany-ibm
Copy link
Contributor

@arunvenmany-ibm arunvenmany-ibm commented Sep 5, 2024

  1. Project.buildDir is deprecated, to be replaced by

Refer:- https://docs.gradle.org/current/kotlin-dsl/gradle/org.gradle.api/-project/get-build-dir.html
Per doumumentation we should use Use getLayout().getBuildDirectory() instead

we need to use project.layout.buildDirectory.asFile.get() to get in File format

Refer:-gradle/gradle#20210

  1. xmlParser
    groovy.util.XmlParser is deprecated
    Ref:- https://docs.groovy-lang.org/3.0.1/html/api/groovy/util/XmlParser.html
    
    use groovy.xml.xmlParser
    
    3. groovy.util.xmlNodePrinter is deprecated. use groovy.xml.XmlNodePrinter instead
    
    Refer:- https://docs.groovy-lang.org/docs/groovy-3.0.10/html/api/groovy/util/XmlNodePrinter.html

Signed-off-by: Arun Venmany <Arun.Kumar.V.N@ibm.com>
@arunvenmany-ibm arunvenmany-ibm merged commit cb9336f into OpenLiberty:main Sep 9, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants