Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with versions >0.8.6 #536

Open
sagile opened this issue Jan 16, 2025 · 0 comments
Open

Issues with versions >0.8.6 #536

sagile opened this issue Jan 16, 2025 · 0 comments

Comments

@sagile
Copy link

sagile commented Jan 16, 2025

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()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant