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

Gradle : allow Eclipse XML from a string as well #2436

Open
rnc opened this issue Feb 26, 2025 · 1 comment
Open

Gradle : allow Eclipse XML from a string as well #2436

rnc opened this issue Feb 26, 2025 · 1 comment

Comments

@rnc
Copy link

rnc commented Feb 26, 2025

This is a follow on from #2343 (which is great!) produced by @tomasbjerre. I have a remote deployed IDE configuration (that we use for both maven and gradle). Ideally, rather than having a local copy I'd like to use the remote one. However it seems the new option doesn't allow a eclipse-format.xml to be passed as a string i.e.

    val spotlessConfig by configurations.creating
    dependencies {
        spotlessConfig("org.....:ide-config:1.1.0")
    }

    spotless {
        java {
             logger.warn("#### Found " + resources.text.fromArchiveEntry(spotlessConfig, "java-formatter.xml").asString())
                eclipse().configProperties(resources.text.fromArchiveEntry(spotlessConfig, "java-formatter.xml").asString())
 //            eclipse().configFile("$rootDir/ide-config/eclipse-format.xml")
     }

I realise I can't use asFile on the resources.text.fromArchiveEntry as that then clashes with Gradle and clean erases the file hence trying this alternate route.

@rnc
Copy link
Author

rnc commented Feb 26, 2025

Oh, I've just seen #2361 which I think would solve this :-)

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