Skip to content

build.gradle is missing Junit annotations as a dependency

sorry if this is only a problem on my machine could only compile after making following changes to build.gradle

 dependencies {
+    compileOnly 'org.jetbrains:annotations:24.1.0'
     testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
 }

-tasks.test {
+test {
     useJUnitPlatform()
 }

+
+sourceSets {
+    main {
+        java {
+            srcDirs = ['src']
+        }
+    }
+    test {
+        java {
+            srcDirs = ['test']
+        }
+    }
+}