blob: 465ef1b8120c31ea8f74ef94a4fa0e39c1b72e39 [file]
plugins {
id 'com.gradle.develocity' version '3.19.1'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.1'
}
def isCI = System.getenv('CI') != null
def isLocal = !isCI
def isAuthenticated = System.getenv('DEVELOCITY_ACCESS_KEY') != null
develocity {
server = 'https://ge.grails.org'
buildScan {
tag('grails')
tag('grails-data-mapping')
publishing.onlyIf { isAuthenticated }
uploadInBackground = isLocal
}
}
buildCache {
local { enabled = isLocal }
remote(develocity.buildCache) {
push = isCI && isAuthenticated
enabled = true
}
}
rootProject.name = 'grails-data-mapping'
include(
'grails-datastore-core',
'grails-datastore-web',
// Core GORM Implementation projects
'grails-datastore-gorm',
'grails-datastore-async',
'grails-datastore-gorm-async',
'grails-datastore-gorm-validation',
'grails-datastore-gorm-support',
'grails-datastore-gorm-tck',
'grails-datastore-gorm-test',
// RX projects
// until this can be finished ported to grails 7, we are disabling
//'grails-datastore-gorm-rx',
// Testing Support
'grails-gorm-testing-support',
// Test Report
'test-report'
)
// Documentation
include 'docs-guide-developer'
project(':docs-guide-developer').projectDir = file('docs/guide-developer')
// until this can be finished ported to grails 7, we are disabling
//include 'docs-guide-rx'
//project(':docs-guide-rx').projectDir = file('docs/guide-rx')
include 'docs-guide-whats-new'
project(':docs-guide-whats-new').projectDir = file('docs/guide-whats-new')
// Core
include "grails-datastore-gorm-hibernate5"
findProject(':grails-datastore-gorm-hibernate5').projectDir = file('hibernate5/grails-datastore-gorm-hibernate')
// Documentation
include 'hibernate5-docs'
findProject(':hibernate5-docs').projectDir = new File(settingsDir, 'hibernate5/docs')
// Plugins
include 'hibernate5-grails-plugin'
findProject(':hibernate5-grails-plugin').projectDir = new File(settingsDir, 'hibernate5/grails-plugin')
include 'database-migration'
findProject(':database-migration').projectDir = new File(settingsDir, 'hibernate5/grails-database-migration')
include 'gorm-hibernate5-spring-boot'
findProject(':gorm-hibernate5-spring-boot').projectDir = new File(settingsDir, 'hibernate5/boot-plugin')
include "examples-grails-hibernate"
project(":examples-grails-hibernate").projectDir = new File(settingsDir, "hibernate5/examples/grails-hibernate")
include "examples-grails-multiple-datasources"
project(":examples-grails-multiple-datasources").projectDir = new File(settingsDir, "hibernate5/examples/grails-multiple-datasources")
include "examples-grails-database-per-tenant"
project(":examples-grails-database-per-tenant").projectDir = new File(settingsDir, "hibernate5/examples/grails-database-per-tenant")
include "examples-grails-schema-per-tenant"
project(":examples-grails-schema-per-tenant").projectDir = new File(settingsDir, "hibernate5/examples/grails-schema-per-tenant")
include "examples-grails-partitioned-multi-tenancy"
project(":examples-grails-partitioned-multi-tenancy").projectDir = new File(settingsDir, "hibernate5/examples/grails-partitioned-multi-tenancy")
include "examples-standalone-hibernate"
project(":examples-standalone-hibernate").projectDir = new File(settingsDir, "hibernate5/examples/standalone-hibernate")
include "examples-spring-boot-hibernate"
project(":examples-spring-boot-hibernate").projectDir = new File(settingsDir, "hibernate5/examples/spring-boot-hibernate")
include "examples-grails-data-service"
project(":examples-grails-data-service").projectDir = new File(settingsDir, "hibernate5/examples/grails-data-service")
include "examples-grails-hibernate-groovy-proxy"
project(":examples-grails-hibernate-groovy-proxy").projectDir = new File(settingsDir, "hibernate5/examples/grails-hibernate-groovy-proxy")
include 'examples-issue450'
project(':examples-issue450').projectDir = new File(settingsDir, 'hibernate5/examples/issue450')
// core
include "grails-datastore-gorm-bson"
project(":grails-datastore-gorm-bson").projectDir = new File(settingsDir, 'mongodb/grails-datastore-gorm-bson')
include "grails-datastore-gorm-mongodb"
project(":grails-datastore-gorm-mongodb").projectDir = new File(settingsDir, 'mongodb/grails-datastore-gorm-mongodb')
include "grails-datastore-gorm-mongodb-ext"
project(":grails-datastore-gorm-mongodb-ext").projectDir = new File(settingsDir, 'mongodb/grails-datastore-gorm-mongodb-ext')
// documentation
include 'mongodb-docs'
project(':mongodb-docs').projectDir = new File(settingsDir, 'mongodb/docs')
// plugins
include "gorm-mongodb-spring-boot"
project(':gorm-mongodb-spring-boot').projectDir = new File(settingsDir, 'mongodb/boot-plugin')
include 'mongodb-grails-plugin'
project(':mongodb-grails-plugin').projectDir = new File(settingsDir, 'mongodb/grails-plugin')
include 'views-json-templates'
project(':views-json-templates').projectDir = new File(settingsDir, 'mongodb/json-templates')
// examples
include 'examples-grails3-mongodb'
project(":examples-grails3-mongodb").projectDir = new File(settingsDir, "mongodb/examples/grails3-mongodb")
include 'examples-grails3-mongodb-database-per-tenant'
project(":examples-grails3-mongodb-database-per-tenant").projectDir = new File(settingsDir, "mongodb/examples/grails3-mongodb-database-per-tenant")
include 'examples-grails3-hibernate5-mongodb'
project(":examples-grails3-hibernate5-mongodb").projectDir = new File(settingsDir, "mongodb/examples/grails3-hibernate5-mongodb")
include 'examples-springboot-mongodb'
project(":examples-springboot-mongodb").projectDir = new File(settingsDir, "mongodb/examples/springboot-mongodb")
include 'examples-test-data-service'
project(":examples-test-data-service").projectDir = new File(settingsDir, "mongodb/examples/test-data-service")
include 'examples-gson-templates'
project(":examples-gson-templates").projectDir = new File(settingsDir, "mongodb/examples/gson-templates")