Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boot-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies {

testRuntimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
testRuntimeOnly "com.h2database:h2:$h2Version"
testRuntimeOnly "com.h2database:h2"
}
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ subprojects { Project subproject ->
if(isExample) {
apply plugin: "groovy"

ext['h2.version'] = h2Version
ext['gorm.version'] = gormVersion

if(subproject.name.startsWith("examples-grails")) {
Expand Down Expand Up @@ -117,9 +116,8 @@ subprojects { Project subproject ->
}
}



dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")
testImplementation "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationApiVersion"
testImplementation "io.micrometer:micrometer-core:latest.integration"
testImplementation "io.projectreactor:reactor-test:$projectReactorVersion"
Expand Down Expand Up @@ -184,6 +182,10 @@ subprojects { Project subproject ->

apply plugin: 'groovy'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")
}

configurations {
documentation.extendsFrom(compileClasspath)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package functional.tests

// TODO domain inheritance
class Employee /*extends Person*/ {
class Employee extends Person {

static belongsTo = [
business: Business
Expand Down
2 changes: 1 addition & 1 deletion examples/spring-boot-hibernate5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version"
implementation "org.hibernate:hibernate-ehcache:$hibernate5Version"

runtimeOnly "com.h2database:h2:$h2Version"
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
runtimeOnly "org.slf4j:slf4j-api:$slf4jVersion"
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone-hibernate5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin:"groovy"

dependencies {
implementation project(":grails-datastore-gorm-hibernate5")
runtimeOnly "com.h2database:h2:$h2Version"
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
runtimeOnly "org.slf4j:slf4j-api:$slf4jVersion"
Expand Down
4 changes: 1 addition & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ grailsShellVersion=7.0.0-SNAPSHOT
grailsSpringSecurityRestVersion=6.0.0-SNAPSHOT
grailsVersion=7.0.0-SNAPSHOT
groovydocGradlePluginVersion=1.0.1
groovyVersion=4.0.23
# Tests are built for 1.4.200, so stick with older version
h2Version=1.4.200
groovyVersion=4.0.24-SNAPSHOT
hibernate5Version=5.6.15.Final
hibernateValidatorVersion=8.0.1.Final
hibernateGroovyProxy=1.1
Expand Down
2 changes: 1 addition & 1 deletion grails-datastore-gorm-hibernate5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
testImplementation "org.grails:grails-datastore-gorm-tck:$gormVersion", {
exclude group: "org.spockframework"
}
testImplementation "com.h2database:h2:$h2Version"
testImplementation "com.h2database:h2"

testImplementation "org.hibernate:hibernate-ehcache:$hibernate5Version"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ class Iteration {
// static mappedBy = [products: 'iteration', otherProducts: 'none']
}

// @Entity
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
@Entity
class Product extends SuperProduct {

static belongsTo = [iteration: Iteration]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ class Company {
tablePerSubclass true
}
}
// @Entity
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
@Entity
class Vendor extends Company {

static constraints = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ class UpdatePropertyInEventListenerSpec extends Specification {
class User {
String username
String password

static mapping = {
table '`user`'
password column: '`password`'
}
}

class PasswordEncodingListener extends AbstractPersistenceEventListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class SubclassToOneProxySpec extends GormDatastoreSpec {
class SuperclassProxy {
}

// @Entity
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
@Entity
class SubclassProxy extends SuperclassProxy {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ abstract class Vehicle {
}
}

// @Entity
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
@Entity
class Spaceship extends Vehicle {
static mapping = {
dynamicUpdate true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ abstract class Person {

}

// @Entity
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
@Entity
class Employee extends Person {

static belongsTo = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ class User {
static constraints = {
name unique: false
}

static mapping = {
table '`user`'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ class Item {
Product product
}

// @Entity
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
@Entity
class ConcreteProduct extends Product {

}
Expand Down
2 changes: 1 addition & 1 deletion grails-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies {
}
testRuntimeOnly "org.yaml:snakeyaml:$snakeYamlVersion"
testImplementation "org.grails:grails-gorm-testing-support:$testingSupportVersion"
testRuntimeOnly "com.h2database:h2:$h2Version"
testRuntimeOnly "com.h2database:h2"
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
testRuntimeOnly "org.springframework:spring-aop:$springVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class Person {
phone nullable: true
}
}
// @Entity
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
@Entity
class Player extends Person {
String sport
String height
Expand Down
Loading