Closed bachhavdipak closed 3 years ago
Hello @bachhavdipak.
For JUnit 5.7.x please use the latest version 0.2.2
.
@bachhavdipak since version 0.2.x project moved on maven central into another namespace io.hosuaby
.
You just need to change your dependencies as following:
testCompile group: 'io.hosuaby', name: 'inject-resources-core', version: '0.2.2'
testCompile group: 'io.hosuaby', name: 'inject-resources-junit-jupiter', version: '0.2.2'
Do not forget to declare Maven central repo if it is not done yet:
repositories {
mavenCentral()
}
You can find more info in the doc: https://hosuaby.github.io/inject-resources/0.2.2/asciidoc/#inject-resources-junit-jupiter
@bachhavdipak what is your JDK version ? Note: the minimal java version required is Java 8
@hosuaby
I am using below JDK version.
java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
@bachhavdipak Not sure it will help, but try add this to your grandle file:
java {
disableAutoTargetJvm()
}
Thank you so much for your reply.
Yes finally it's working now. Thanks for your help.
On Sun, Jun 6, 2021, 9:26 AM Alexei KLENIN @.***> wrote:
@bachhavdipak https://github.com/bachhavdipak Not sure it will help, but try add this to your grandle file:
java { disableAutoTargetJvm() }
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hosuaby/inject-resources/issues/12#issuecomment-855360441, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASMJ2WQLXAZBFFDWO4CYCTLTRMWL3ANCNFSM46EK2SQA .
Build.gradle
Error: