You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a working spring project with com.redis.om:redis-om-spring:0.8.6
When I try to use version 0.8.9 the build fails on the test task with error:
> Task :test
RedisApplicationTests > contextLoads() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:180
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at AutowiredAnnotationBeanPostProcessor.java:788
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at AutowiredAnnotationBeanPostProcessor.java:788
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at AutowiredAnnotationBeanPostProcessor.java:788
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:804
Caused by: org.springframework.beans.factory.BeanCreationException at ConstructorResolver.java:657
Caused by: org.springframework.beans.BeanInstantiationException at SimpleInstantiationStrategy.java:199
Caused by: java.lang.NoClassDefFoundError at RedisModulesConfiguration.java:109
Caused by: java.lang.ClassNotFoundException at BuiltinClassLoader.java:641
1 test completed, 1 failed
When I try version 0.9.6 I get an error on the compileJava step:
1 actionable task: 1 executed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.redis.om:redis-om-spring:0.9.6.
Required by:
root project :
> Could not resolve com.redis.om:redis-om-spring:0.9.6.
> Could not parse POM https://repo.maven.apache.org/maven2/com/redis/om/redis-om-spring/0.9.6/redis-om-spring-0.9.6.pom
> Could not find org.springframework.ai:spring-ai-bom:1.0.0-M2.
This is my build.gradle file:
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.1'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'redis'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.redis.om:redis-om-spring:0.9.6'
implementation 'redis.clients:jedis:4.4.8'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test') {
useJUnitPlatform()
}
The text was updated successfully, but these errors were encountered:
I have a working spring project with
com.redis.om:redis-om-spring:0.8.6
When I try to use version 0.8.9 the build fails on the
test
task with error:When I try version 0.9.6 I get an error on the
compileJava
step:This is my
build.gradle
file:The text was updated successfully, but these errors were encountered: