Skip to content

Commit

Permalink
Remove dependency of gorm-hibernate
Browse files Browse the repository at this point in the history
Spock need `bytebuddy` to mock test

Closes gh-37
  • Loading branch information
rainboyan committed Oct 16, 2024
1 parent d3c6542 commit 011ce95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ gormVersion=2023.1.0-M2
gradleWrapperVersion=7.6.4
graceVersion=2023.1.0-M1
groovyVersion=4.0.23
bytebuddyVersion=1.14.16
jansiVersion=2.4.0
javaParserCoreVersion=3.26.2
javassistVersion=3.30.0-GA
Expand Down
2 changes: 1 addition & 1 deletion json/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
api "org.graceframework:grace-datastore-gorm:$gormVersion"
testImplementation "org.graceframework:grace-test-support:$graceVersion"
testImplementation project(":views-json-testing-support")
testImplementation "org.graceframework:grace-datastore-gorm-hibernate:$gormVersion"
testImplementation "net.bytebuddy:byte-buddy:$bytebuddyVersion"
testRuntimeOnly "org.javassist:javassist:$javassistVersion"

console "org.graceframework:grace-console"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package grails.plugin.json.view

import grails.gorm.annotation.Entity
import grails.plugin.json.view.test.JsonViewTest
import org.grails.orm.hibernate.cfg.HibernateMappingContext
import org.grails.datastore.mapping.keyvalue.mapping.config.KeyValueMappingContext
import spock.lang.Specification

/**
Expand All @@ -11,7 +11,7 @@ import spock.lang.Specification
class CompositeIdSpec extends Specification implements JsonViewTest {

void setup() {
mappingContext = new HibernateMappingContext()
mappingContext = new KeyValueMappingContext("test")
templateEngine.mappingContext = mappingContext
}

Expand Down

0 comments on commit 011ce95

Please sign in to comment.