gradle is trying to mount the dependencies, but it is not finding these sources I don’t know how to solve this problem, but without it I can’t run the necessary tests
Execution failed for task ':Tasklist-task:compileTestKotlin'.
> Could not resolve all files for configuration ':Tasklist-task:testCompileClasspath'.
> Could not find com.github.hyperskill:hs-test:release-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/github/hyperskill/hs-test/release-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/github/hyperskill/hs-test/release-SNAPSHOT/hs-test-release-SNAPSHOT.pom
- https://jitpack.io/com/github/hyperskill/hs-test/release-SNAPSHOT/maven-metadata.xml
- https://jitpack.io/com/github/hyperskill/hs-test/release-SNAPSHOT/hs-test-release-v10.0.2-g0b5d326-30.pom
Required by:
project :Tasklist-task
this is my gradle file
buildscript {
ext.kotlin_version = ‘1.8.20’
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
subprojects {
apply plugin: ‘application’
apply plugin: ‘java’
apply plugin: ‘kotlin’
sourceCompatibility = "1.8"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testImplementation 'com.github.hyperskill:hs-test:release-SNAPSHOT'
implementation("com.squareup.moshi:moshi-kotlin:1.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
sourceSets {
main {
kotlin.srcDir 'src'
java.srcDir 'src'
}
test {
kotlin.srcDir 'test'
java.srcDir 'test'
}
}
test {
systemProperty "file.encoding", "utf-8"
}
compileJava.options.encoding = 'utf-8'
tasks.withType(JavaCompile) {
options.encoding = 'utf-8'
}
}
project(‘:util’) {
dependencies {
implementation ‘com.github.hyperskill:hs-test:release-SNAPSHOT’
}
}
configure(subprojects.findAll { it.name != ‘util’ }) {
dependencies {
testImplementation project(‘:util’).sourceSets.main.output
testImplementation project(‘:util’).sourceSets.test.output
}
}