should work, please make sure everything JUnit pla...
# spek
a
should work, please make sure everything JUnit platform related is on 1.0.0 and JUnit Jupiter related is on
5.0.0
. Also you can try to kill/start Gradle daemon just in case
j
@artem_zin I've update all possible libraries on my project but I'm still unable to run the tests.
a
hm hm, tried to stop/start Gradle daemon?
j
Yeah... But when I've stopped the Gradle daemon I was unable to run the tests only on the terminal.
If I want/need to run just a single test file from Intellij I get the error.
@artem_zin Do you know what java version Spek currently support?
a
it’s a
max(all_deps_that_spek_uses)
, should be Java 8 because JUnit 5 targets java8 afaik
j
JDK version is not the problem... I'm already using the JDK8
a
mkay, can you run
./gradlew :module:dependencies > ~/Desktop/deps.txt
and make sure all versions of deps are consistent? Ie all JUnit deps are 1.0.0 and 5.0.0, all Spek deps are 1.1.5, Kotlin deps are the same
z
I'm having the same issue 😕
t
Is this Android Studio? If so take a look here at the working config. https://github.com/JetBrains/spek/pull/271
z
Nope, Intellij
j
@artem_zin This is the content of the deps.txt file generated into my computer:
Copy code
Downloading <https://services.gradle.org/distributions/gradle-3.1-all.zip>
...........................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /home/jackmiras/.gradle/wrapper/dists/gradle-3.1-all/ejgglywf033yp6s4x8ahmgm74/gradle-3.1-all.zip to /home/jackmiras/.gradle/wrapper/dists/gradle-3.1-all/ejgglywf033yp6s4x8ahmgm74
Set executable permissions for: /home/jackmiras/.gradle/wrapper/dists/gradle-3.1-all/ejgglywf033yp6s4x8ahmgm74/gradle-3.1/bin/gradle
Starting a Gradle Daemon (subsequent builds will be faster)
Download <https://plugins.gradle.org/m2/gradle/plugin/com/heroku/sdk/heroku-gradle/0.2.0/heroku-gradle-0.2.0.pom>
Download <https://plugins.gradle.org/m2/gradle/plugin/com/heroku/sdk/heroku-gradle/0.2.0/heroku-gradle-0.2.0.jar>

BUILD FAILED

Total time: 3 mins 3.056 secs
The weird thing is that hasn't any info in the file about JUnit or Kotlin versions
a
@jackmiras well, your build failed I guess you didn’t specify module name properly, it was just an example
./gradlew :module:dependencies > ~/Desktop/deps.txt
j
@artem_zin I've checked the dependencies and I noticed that Kodein is still using the version 1.3.2 of Kotlin and Kluent are using the version 4.2 of JUnit.
Apparently the rest of the libs are pointing to Kotlin 1.1.51
a
@jackmiras okay, lets start with syncing Kotlin versions across your dependencies
j
How do you suggest that I do that?
a
Copy code
configurations {
  resolutionStrategy {
    force 'some:dependency:version'
    // Force all Kotlin deps here used by other deps
  }
}