0

I've checked the docs: https://spekframework.org/migration/#maven-coordinates

I wanted to try out version 2.x.x, so I added in build.gradle:

testImplementation ("org.spekframework.spek2:spek-dsl-jvm:2.0.0")
testRuntimeOnly ('org.spekframework.spek2:spek-runner-junit5')

But Gradle is unable to find that 2.x.x library in Maven Central: https://search.maven.org/search?q=spek-dsl-jvm

What should I do? Is there a special repo?

Luís Soares
  • 5,726
  • 4
  • 39
  • 66

2 Answers2

1

try to configure your repositories with: maven { url 'https://oss.jfrog.org/artifactory/libs-snapshot'}

Your dependency should be as follows:

dependency "org.spekframework.spek2:spek-dsl-jvm:$spekVersion"

where spekVersion = "2.0.0-SNAPSHOT"

adave
  • 41
  • 3
0

You should add the following maven repo to your build file:

repositories {    
  jcenter()
}

Then for the dependencies:

testCompile group: 'org.spekframework.spek2', name: 'spek-dsl-jvm', version: '2.0.0-rc.1'
testCompile group: 'org.spekframework.spek2', name: 'spek-runner-junit5', version: '2.0.0-rc.1'

You could also checkout https://github.com/spekframework/spek-multiplatform-example for more info.

Luís Soares
  • 5,726
  • 4
  • 39
  • 66
raniejade
  • 515
  • 5
  • 14