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

Using a software type with an empty configuration block has no effect in DCL #29161

Closed
h0tk3y opened this issue May 15, 2024 · 0 comments · Fixed by #29158
Closed

Using a software type with an empty configuration block has no effect in DCL #29161

h0tk3y opened this issue May 15, 2024 · 0 comments · Fixed by #29158

Comments

@h0tk3y
Copy link
Member

h0tk3y commented May 15, 2024

Current Behavior

In a project's build.gradle.dcl, applying a software type with an empty block, like javaLibrary { } has no effect: the plugin is not applied to the project.

Expected Behavior

Using an empty block should apply the plugin.

Context (optional)

No response

Steps to Reproduce

In https://github.com/gradle/declarative-gradle/blob/main/unified-prototype/testbed-java-library/build.gradle.dcl, delete the content of the javaLibrary { ... } block.

Then run ./gradlew :testbed-java-library:tasks and check that there are not Java-related tasks.

Gradle version

8.9

Build scan URL (optional)

No response

Your Environment (optional)

No response

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

Successfully merging a pull request may close this issue.

3 participants