Skip to content

Not working on Spring Boot v2.7.1 #6

Open

Description

@JoseLion

It seems the plugin is not working with Spring Boot v2.7.1. For example, when I try to apply the plugin with the closure:

plugins {
  id 'java'
  id 'org.springframework.boot' version '2.7.1'
  id 'com.github.otkmnb2783.dotenv' version '0.2.0'
}

monkeyPatch {
  target = 'org.springframework:spring-context:5.3.21'
}

I get the following error:

No signature of method: build_7tuf43fbv9kv4oyt01t3y76v2.monkeyPatch() is applicable for argument types: (build_7tuf43fbv9kv4oyt01t3y76v2$_run_closure13) values: [build_7tuf43fbv9kv4oyt01t3y76v2$_run_closure13@371b31fc]

Not sure if I'm missing something, but I also noticed the position of the monkeyPatch closure in the build.gradle script has a crucial role. Where should it be placed ideally?

Cheers!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions