blob: 09db37ad67294e8ae970cd367cb0ce7f6a8642f8 [file] [log] [blame]
plugins {
id 'groovy'
id 'java-library'
}
version = projectVersion
group = 'org.apache.grails.data'
dependencies {
implementation platform("org.apache.grails:grails-bom:$grailsVersion")
api project(':grails-datamapping-core'), {
// api: GormEntity, GormStaticApi, GormOperations, GormStaticOperations
// impl: GormEnhancer
if (excludeUnusedTransDeps) {
// API dependencies in grails-datamapping-core
exclude group: 'jakarta.annotation', module: 'jakarta.annotation-api'
//exclude group: 'jakarta.persistence', module: 'jakarta.persistence-api' // Entity
//exclude group: 'org.apache.grails.data', module: 'grails-datastore-core' // DirtyCheckable
exclude group: 'org.apache.grails.data', module: 'grails-datamapping-validation'
//exclude group: 'org.springframework', module: 'spring-context' // Errors
exclude group: 'org.springframework', module: 'spring-jdbc'
//exclude group: 'org.springframework', module: 'spring-tx' // TransactionDefinition
}
}
api 'org.apache.grails.async:grails-async-core', {
// api: Promise, PromiseDecorator, PromiseDecoratorProvider
// impl: Promises
}
compileOnlyApi project(':grails-datastore-async'), {
// AST (source retention annotation): DelegateAsync
if (excludeUnusedTransDeps) {
// API dependencies in grails-datastore-async
exclude group: 'org.apache.grails.async', module: 'grails-async'
}
}
compileOnly 'org.apache.groovy:groovy'
}
apply from: rootProject.layout.projectDirectory.file('gradle/java-config.gradle')
apply from: rootProject.layout.projectDirectory.file('gradle/test-config.gradle')
apply from: rootProject.layout.projectDirectory.file('gradle/publish-config.gradle')