Back End/트러블슈팅

[gradle.kts] The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version

DevPing9_ 2022. 9. 25. 20:52
코틀린에서 플러그인을 선언하자 아래와 같은 에러문구를 만나게 되었다

The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version

Gradle
은 여러버전의 플러그인을 클래스패스에 선언하는 것을 허락하지 않는다고 한다. (stackoverflow)

따라서 아래와 같이 해결하였다.

 

Before

plugins {
    kotlin("plugin.allopen") version "1.3.71"
    kotlin("plugin.noarg") version "1.3.71"
}

allOpen {
    annotation("javax.persistence.Entity")
    annotation("javax.persistence.Embeddable")
    annotation("javax.persistence.MappedSuperclass")
}

noArg {
    annotation("javax.persistence.Entity")
    annotation("javax.persistence.Embeddable")
    annotation("javax.persistence.MappedSuperclass")
}

 

After

plugins {
    kotlin("plugin.allopen")
    kotlin("plugin.noarg")
}

allOpen {
    annotation("javax.persistence.Entity")
    annotation("javax.persistence.Embeddable")
    annotation("javax.persistence.MappedSuperclass")
}

noArg {
    annotation("javax.persistence.Entity")
    annotation("javax.persistence.Embeddable")
    annotation("javax.persistence.MappedSuperclass")
}

 

Reference

 

plugin request for plugin already on the classpath must not include a version

I've done web search for "plugin request for plugin already on the classpath must not include a version site:stackoverflow.com" and found nothing that particular. Search for "plugin request for plu...

stackoverflow.com

 

 

코틀린에서 하이버네이트를 사용할 수 있을까? | 우아한형제들 기술블로그

{{item.name}} 신규 시스템을 개발하면서 코틀린과 하이버네이트를 함께 사용한 경험을 나누기 위해 작성해봅니다. 안녕하세요! 서비스플랫폼 팀에서 서버 개발을 하는 김지희, 김석홍입니다. 저희

techblog.woowahan.com

 

728x90