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
728x90