Skip to content

Commit

Permalink
Grace: update Gradle build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Dec 12, 2023
1 parent b3923a5 commit a90d7ed
Show file tree
Hide file tree
Showing 47 changed files with 373 additions and 369 deletions.
46 changes: 25 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ ext {
'scaffolding-core': [
version: libs.versions.grails.scaffolding.get(),
group : 'org.grails',
names : ['grails-scaffolding'],
names : ['scaffolding'],
modules: ['core']
],
'groovy': [
Expand Down Expand Up @@ -148,7 +148,7 @@ ext {
}

version = grailsVersion
group = "org.grails"
group = "org.graceframework"

// directories created during the build which are related
// to turning the workspace root into a GRAILS_HOME
Expand Down Expand Up @@ -257,18 +257,18 @@ apply from: "gradle/idea.gradle"

subprojects { project ->
version = grailsVersion
group = "org.grails"
group = "org.graceframework"

configurations {
documentation
}

ext.isTestSuite = project.name.startsWith("grails-test-suite")
ext.isTestSuite = project.name.startsWith("grace-test-suite")
ext.isCiBuild = project.hasProperty("isCiBuild") || System.getenv().get("CI") as Boolean
ext.pomInfo = {
delegate.name 'Grails'
delegate.description 'Grails Web Application Framework'
delegate.url 'https://grails.org/'
delegate.name 'Grace'
delegate.description 'Grace Web Application Framework'
delegate.url 'https://graceframework.org/'

delegate.licenses {
delegate.license {
Expand All @@ -279,9 +279,9 @@ subprojects { project ->
}

delegate.scm {
delegate.url 'scm:[email protected]:grails/grails-core.git'
delegate.connection 'scm:[email protected]:grails/grails-core.git'
delegate.developerConnection 'scm:[email protected]:grails/grails-core.git'
delegate.url 'scm:[email protected]:graceframework/grace-framework.git'
delegate.connection 'scm:[email protected]:graceframework/grace-framework.git'
delegate.developerConnection 'scm:[email protected]:graceframework/grace-framework.git'
}

delegate.developers {
Expand All @@ -297,6 +297,10 @@ subprojects { project ->
delegate.id 'lhotari'
delegate.name 'Lari Hotari'
}
delegate.developer {
delegate.id 'rainboyan'
delegate.name 'Michael Yan'
}
}

}
Expand Down Expand Up @@ -342,8 +346,8 @@ subprojects { project ->
}
}

if(project.name == 'grails-dependencies') return
if(project.name == 'grails-bom') return
if(project.name == 'grace-dependencies') return
if(project.name == 'grace-bom') return

publications {
mavenJava(MavenPublication) {
Expand Down Expand Up @@ -384,13 +388,13 @@ subprojects { project ->

}

if(project.name == 'grails-dependencies') return
if(project.name == 'grails-bom') return
if(project.name == 'grace-dependencies') return
if(project.name == 'grace-bom') return

sourceCompatibility = 11
targetCompatibility = 11

if(project.name =~ /^(grails-web|grails-plugin-|grails-test-suite|grails-test)/) {
if(project.name =~ /^(grace-web|grace-plugin-|grace-test-suite|grace-test)/) {
dependencies {
api libs.javax.servlet
// MockHttpServletRequest/Response/Context used in many classes
Expand All @@ -400,7 +404,7 @@ subprojects { project ->
}
}

if(project.name =~ /^(grails-plugin-datasource|grails-test-suite)/) {
if(project.name =~ /^(grace-plugin-datasource|grace-test-suite)/) {
dependencies {
testImplementation libs.hsqldb
testImplementation libs.h2
Expand All @@ -411,9 +415,9 @@ subprojects { project ->
manifest.mainAttributes(
"Built-By": System.properties['user.name'],
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
"Implementation-Title": "Grails",
"Implementation-Title": "Grace",
"Implementation-Version": grailsVersion,
"Implementation-Vendor": 'grails.org')
"Implementation-Vendor": 'graceframework.org')
}

checkstyle {
Expand Down Expand Up @@ -479,7 +483,7 @@ subprojects { project ->
testImplementation libs.junit.platform.runner
testRuntimeOnly libs.junit.jupiter.engine

if (project.name != "grails-docs") {
if (project.name != "grace-docs") {
// Logging
api libs.slf4j
api libs.slf4j.jcl
Expand Down Expand Up @@ -610,8 +614,8 @@ sdkman {
api = "https://vendors.sdkman.io"
consumerKey = System.getenv("GVM_SDKVENDOR_KEY") ?: project.hasProperty("gvmSdkvendorKey") ? project.gvmSdkvendorKey : ''
consumerToken = System.getenv("GVM_SDKVENDOR_TOKEN") ?: project.hasProperty("gvmSdkvendorToken") ? project.gvmSdkvendorToken : ''
candidate = "grails"
candidate = "grace"
version = project.version
url = "https://github.com/grails/grails-core/releases/download/v${project.version}/grails-${project.version}.zip"
url = "https://github.com/graceframework/grace-framework/releases/download/v${project.version}/grace-${project.version}.zip"
hashtag = "#grailsfw"
}
4 changes: 2 additions & 2 deletions grace-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {
api project(":grails-bootstrap")
api project(":grails-util")
api project(":grace-bootstrap")
api project(":grace-util")

api libs.gorm.datastore.core, {
transitive = false
Expand Down
6 changes: 3 additions & 3 deletions grace-bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ publishing {
mkp.dependencyManagement {
mkp.dependencies {
for (sub in project.parent.subprojects) {
if (sub.name == 'grails-bom') continue
if (sub.name == 'grace-bom') continue

mkp.dependency {
mkp.groupId sub.group
mkp.artifactId sub.name
mkp.version sub.version
if (sub.name == 'grails-dependencies') {
if (sub.name == 'grace-dependencies') {
mkp.type 'pom'
}

if (sub.name == 'grails-bootstrap') {
if (sub.name == 'grace-bootstrap') {
mkp.exclusions {
mkp.exclusion {
mkp.groupId 'jline'
Expand Down
14 changes: 7 additions & 7 deletions grace-bom/plugins.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
gorm.hibernate5=7.2.3-SNAPSHOT
gorm.hibernate5=7.2.2
gorm.mongodb=7.2.1
gorm.neo4j=7.2.1
grails-gradle-plugin=22.0.0-SNAPSHOT
grails-gradle-plugin=5.1.5
cache=5.0.1
rxjava=1.1.1
rxjava2=2.0.0
scaffolding=5.0.0-SNAPSHOT
fields=5.0.0-SNAPSHOT
scaffolding=4.1.0
fields=3.0.0.RC1
geb=3.0.0
views-json=2.2.2-SNAPSHOT
views-json-templates=2.2.2-SNAPSHOT
views-markup=2.2.2-SNAPSHOT
views-json=2.2.1
views-json-templates=2.2.1
views-markup=2.2.1
4 changes: 2 additions & 2 deletions grace-bom/profiles.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
rest-api=5.0.1
base=5.0.6
web=5.0.4
web-bootstrap=5.0.0-SNAPSHOT
web-clean=5.0.0-SNAPSHOT
#web-bootstrap=5.0.0-SNAPSHOT
#web-clean=5.0.0-SNAPSHOT
react=5.0.0
vue=5.0.0
plugin=5.0.1
Expand Down
24 changes: 12 additions & 12 deletions grace-boot/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dependencies {
api project(":grails-api")
api project(":grails-bootstrap")
api project(":grails-core")
api project(":grails-plugin-api")
api project(":grails-plugin-core")
api project(":grails-spring")
api project(":grails-spring-boot")
api project(":grails-web")
api project(":grace-api")
api project(":grace-bootstrap")
api project(":grace-core")
api project(":grace-plugin-api")
api project(":grace-plugin-core")
api project(":grace-spring")
api project(":grace-spring-boot")
api project(":grace-web")

api libs.javax.annotation
api libs.javax.inject
Expand All @@ -22,14 +22,14 @@ dependencies {
compileOnly libs.micronaut.spring
compileOnly libs.micronaut.spring.context

testImplementation project(":grails-plugin-controllers")
testImplementation project(":grails-test")
testImplementation project(":grace-plugin-controllers")
testImplementation project(":grace-test")

testImplementation libs.assertj.core
testImplementation libs.mockito.core
testImplementation libs.mockito.junit
testImplementation libs.spring.boot.test
testImplementation libs.tomcat.embed.core
testRuntimeOnly project(":grails-plugin-i18n")
testRuntimeOnly project(":grails-plugin-url-mappings")
testRuntimeOnly project(":grace-plugin-i18n")
testRuntimeOnly project(":grace-plugin-url-mappings")
}
2 changes: 1 addition & 1 deletion grace-bootstrap/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.apache.tools.ant.filters.ReplaceTokens

dependencies {
api project(":grails-util")
api project(":grace-util")

api libs.groovy.templates
api libs.groovy.xml
Expand Down
4 changes: 2 additions & 2 deletions grace-cli/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {
api project(":grails-api")
api project(":grails-bootstrap")
api project(":grace-api")
api project(":grace-bootstrap")

api libs.groovy.core
api libs.groovy.templates
Expand Down
6 changes: 3 additions & 3 deletions grace-console/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies {
api project(":grails-api")
api project(":grails-core")
api project(":grails-boot")
api project(":grace-api")
api project(":grace-core")
api project(":grace-boot")

api libs.javax.servlet, optional
api libs.groovy.console
Expand Down
12 changes: 6 additions & 6 deletions grace-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies {
api project(":grails-api")
api project(":grails-bootstrap")
api project(":grails-plugin-api")
api project(":grails-spring")
api project(":grails-util")
api project(":grace-api")
api project(":grace-bootstrap")
api project(":grace-plugin-api")
api project(":grace-spring")
api project(":grace-util")

api libs.gorm.datastore.core
api libs.spring.beans
Expand All @@ -13,7 +13,7 @@ dependencies {
api libs.spring.tx
compileOnly libs.micronaut.spring.context

testImplementation project(":grails-test")
testImplementation project(":grace-test")
testImplementation libs.spring.jdbc
testImplementation libs.spring.test
}
Expand Down
4 changes: 2 additions & 2 deletions grace-dependencies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publishing {
delegate.dependencies {
delegate.dependency {
delegate.groupId "org.grails"
delegate.artifactId "grails-bootstrap"
delegate.artifactId "grace-bootstrap"
delegate.version( project.version )
delegate.scope "api"

Expand All @@ -39,7 +39,7 @@ publishing {
for(sub in ['converters', 'rest', 'databinding', 'i18n', 'services', 'url-mappings', 'interceptors']) {
delegate.dependency {
delegate.groupId "org.grails"
delegate.artifactId "grails-plugin-${sub}"
delegate.artifactId "grace-plugin-${sub}"
delegate.version( project.version )
delegate.scope "api"
}
Expand Down
2 changes: 1 addition & 1 deletion grace-docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sourceSets {
tasks.register("docFilesJar", Jar) {
description = 'Package up files used for generating documentation.'
archiveVersion = null
archiveFileName = "grails-doc-files.jar"
archiveFileName = "grace-doc-files.jar"
from "src/main/template"
}

Expand Down
6 changes: 3 additions & 3 deletions grace-encoder/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies {
api project(":grails-api")
api project(":grails-bootstrap")
api project(":grails-util")
api project(":grace-api")
api project(":grace-bootstrap")
api project(":grace-util")

api libs.groovy.json
api libs.spring.context
Expand Down
Loading

0 comments on commit a90d7ed

Please sign in to comment.