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

Cannot create server and runtime using Gradle plugin v3 #419

Open
Azquelt opened this issue Apr 13, 2021 · 1 comment
Open

Cannot create server and runtime using Gradle plugin v3 #419

Azquelt opened this issue Apr 13, 2021 · 1 comment
Labels

Comments

@Azquelt
Copy link
Member

Azquelt commented Apr 13, 2021

When creating or importing a project which uses the Liberty Gradle plugin version 3.x, no prompt appears to create a runtime and server for the project.

The problem occurs because the gradle plugin no longer specifies a default location for the server.xml, it just defines a default folder containing config files. This results in the build/liberty-plugin-config.xml not having a liberty-plugin-config/servers/server/configFile element which the Open Liberty Tools are looking for.

This can be worked around by manually specifying the location of the server.xml in the build.gradle file like this:

liberty {
    server {
        serverXmlFile = file('src/main/liberty/config/server.xml')
    }
}
@Azquelt Azquelt added the bug label Apr 13, 2021
@dbarfield
Copy link
Contributor

dbarfield commented Nov 15, 2022

Section above goes at the top level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants