Skip to content

Commit 3070e04

Browse files
committed
Rename to Grace artifacts
1 parent 6184fd8 commit 3070e04

File tree

296 files changed

+67
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+67
-166
lines changed

boot-plugin/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
dependencies {
22
api "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion"
33
api "org.apache.groovy:groovy:$groovyVersion"
4-
api project(":grails-datastore-gorm-mongodb")
5-
api project(":grails-datastore-gorm-mongodb-ext"), {
6-
exclude group:'org.graceframework', module:'grails-datastore-gorm-mongodb'
7-
}
4+
api project(":grace-datastore-gorm-mongodb")
5+
api project(":grace-datastore-gorm-mongodb-ext")
86
api "org.springframework:spring-tx:$springVersion"
97
}

build.gradle

Lines changed: 31 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,29 @@ ext {
2727
nexusPassword = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
2828
}
2929

30-
ext."signing.keyId" = project.hasProperty("signing.keyId") ? project.getProperty('signing.keyId') : System.getenv('SIGNING_KEY')
31-
ext."signing.password" = project.hasProperty("signing.password") ? project.getProperty('signing.password') : System.getenv('SIGNING_PASSPHRASE')
32-
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : "${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg"
30+
ext."signing.keyId" = System.getenv("SIGNING_KEY") ?: project.hasProperty("signing.keyId") ? project.getProperty('signing.keyId') : null
31+
ext."signing.password" = System.getenv("SIGNING_PASSPHRASE") ?: project.hasProperty("signing.password") ? project.getProperty('signing.password') : null
32+
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : null
33+
ext['junit-jupiter.version'] = junitJupiterVersion
3334

34-
if (isReleaseVersion) {
35-
apply plugin: 'maven-publish'
36-
apply plugin: "io.github.gradle-nexus.publish-plugin"
37-
38-
nexusPublishing {
39-
repositories {
40-
sonatype {
41-
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
42-
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
43-
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : ''
44-
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
45-
username = ossUser
46-
password = ossPass
47-
stagingProfileId = ossStagingProfileId
48-
}
35+
apply plugin: 'maven-publish'
36+
apply plugin: "io.github.gradle-nexus.publish-plugin"
37+
38+
nexusPublishing {
39+
repositories {
40+
sonatype {
41+
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
42+
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
43+
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : ''
44+
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
45+
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
46+
username = ossUser
47+
password = ossPass
48+
stagingProfileId = ossStagingProfileId
4949
}
5050
}
5151
}
5252

53-
5453
subprojects { project ->
5554

5655
ext {
@@ -120,8 +119,8 @@ subprojects { project ->
120119
return
121120
}
122121

123-
boolean isPluginProject = project.name.endsWith("-plugin") && (project.name.startsWith("grails") || project.name.startsWith("rx-"))
124-
boolean isGrails3PluginProject = project.name.endsWith("-plugin")
122+
boolean isPluginProject = project.name.startsWith("grace") && project.name.endsWith("-plugin")
123+
boolean isGracePluginProject = project.name.endsWith("-plugin")
125124

126125
ext {
127126
projectInfo = new PublishingConvention(project)
@@ -166,23 +165,21 @@ subprojects { project ->
166165
apply plugin: 'groovy'
167166

168167
if (isPluginProject) {
169-
group "org.graceframework.plugins"
170-
version(rootProject.version)
168+
group = "org.graceframework.plugins"
169+
version = rootProject.version
170+
171+
apply plugin: "org.graceframework.grace-plugin"
171172
} else {
172-
group "org.graceframework"
173-
version rootProject.version
173+
group = "org.graceframework"
174+
version = rootProject.version
175+
176+
apply plugin: "groovy"
174177
}
175178

176179
if (project.name == 'docs') {
177180
return
178181
}
179182

180-
if (isGrails3PluginProject) {
181-
apply plugin: "org.graceframework.grace-plugin"
182-
} else {
183-
apply plugin: "groovy"
184-
}
185-
186183
apply plugin: "java-library"
187184
apply plugin: 'maven-publish'
188185
apply plugin: 'signing'
@@ -220,25 +217,6 @@ subprojects { project ->
220217
}
221218

222219
publishing {
223-
224-
if (isBuildSnapshot) {
225-
repositories {
226-
maven {
227-
credentials {
228-
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
229-
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
230-
username = u
231-
password = p
232-
}
233-
if (isGrails3PluginProject) {
234-
url "https://repo.grails.org/grails/plugins3-snapshots-local"
235-
} else {
236-
url "https://repo.grails.org/grails/libs-snapshots-local"
237-
}
238-
}
239-
}
240-
}
241-
242220
publications {
243221
maven(MavenPublication) {
244222

@@ -274,7 +252,7 @@ subprojects { project ->
274252
from components.java
275253

276254
afterEvaluate {
277-
if (isGrails3PluginProject) {
255+
if (isGracePluginProject) {
278256
artifact source:"${sourceSets.main.groovy.outputDir}/META-INF/grails-plugin.xml",
279257
classifier:"plugin",
280258
extension:'xml'
@@ -311,7 +289,7 @@ class PublishingConvention {
311289
Project project
312290

313291
String projectArtifactId
314-
String projectName = 'GORM for MongoDB'
292+
String projectName = 'Grace Data MongoDB'
315293
String projectDescription = 'Provides a GORM Object Mapping implementations for the MongodB Document Database'
316294
String projectURL = 'https://github.com/graceframework/grace-data-mongodb'
317295
String projectIssueTrackerUrl = 'https://github.com/graceframework/grace-data-mongodb/issues'
@@ -321,7 +299,7 @@ class PublishingConvention {
321299
this.project = project
322300

323301
def name = project.name
324-
if(name.startsWith('grails') && name.endsWith('-plugin')) {
302+
if (name.startsWith('grace') && name.endsWith('-plugin')) {
325303
name = 'mongodb'
326304
}
327305
projectArtifactId = name

examples/grails3-hibernate5-mongodb/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ dependencies {
77
implementation "org.springframework.boot:spring-boot-starter-tomcat"
88
implementation "jakarta.servlet:jakarta.servlet-api:$servletApiVersion"
99
implementation "org.graceframework:grace-core:$graceVersion"
10-
// implementation "org.graceframework:grace-dependencies:$graceVersion", {
11-
// exclude module:'grails-datastore-simple'
12-
// }
1310
implementation "org.graceframework:grace-boot:$graceVersion"
1411
implementation "org.graceframework:grace-plugin-gsp:$graceVersion"
1512
implementation "org.mongodb:mongodb-driver-sync:$mongodbDriverVersion"
16-
implementation project(":grails-plugin")
13+
implementation project(":grace-plugin")
1714
implementation "org.graceframework.plugins:hibernate:$hibernatePluginVersion"
1815
implementation "org.hibernate:hibernate-ehcache:$hibernateCoreVersion"
1916

@@ -28,7 +25,7 @@ dependencies {
2825
testImplementation "io.netty:netty-transport:4.1.72.Final"
2926
testImplementation "io.netty:netty-codec:4.1.72.Final"
3027
testImplementation "io.netty:netty-handler:4.1.72.Final"
31-
testImplementation "org.grails.plugins:geb"
28+
testImplementation "org.graceframework.plugins:geb"
3229

3330
testRuntimeOnly "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
3431
testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"

examples/grails3-mongodb-database-per-tenant/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ dependencies {
55
implementation "org.springframework.boot:spring-boot-starter-tomcat"
66
implementation "jakarta.servlet:jakarta.servlet-api:$servletApiVersion"
77
implementation "org.graceframework:grace-core:$graceVersion"
8-
// implementation "org.graceframework:grace-dependencies:$grailsVersion", {
9-
// exclude module:'grace-datastore-simple'
10-
// }
118
implementation "org.graceframework:grace-boot:$graceVersion"
129
implementation "org.graceframework:grace-plugin-gsp:$graceVersion"
13-
implementation project(":grails-plugin")
10+
implementation project(":grace-plugin")
1411

1512
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin:$assetPipelineVersion"
1613
runtimeOnly "com.h2database:h2"

examples/grails3-mongodb/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ dependencies {
77
implementation "org.springframework.boot:spring-boot-starter-tomcat"
88
implementation "jakarta.servlet:jakarta.servlet-api:$servletApiVersion"
99
implementation "org.graceframework:grace-core:$graceVersion"
10-
// implementation "org.graceframework:grace-dependencies:$graceVersion", {
11-
// exclude module:'grails-datastore-simple'
12-
// }
1310
implementation "org.graceframework:grace-boot:$graceVersion"
1411
implementation "org.graceframework:grace-plugin-gsp:$graceVersion"
15-
implementation project(":grails-plugin")
12+
implementation project(":grace-plugin")
1613
implementation "org.mongodb:mongodb-driver-sync:$mongodbDriverVersion"
1714

1815
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin:$assetPipelineVersion"

examples/springboot-mongodb/build.gradle

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,8 @@ ext['groovy.version'] = "$groovyVersion"
1414
dependencies {
1515
implementation "org.springframework.boot:spring-boot-starter-web:$springBootVersion"
1616
implementation "org.mongodb:mongodb-driver-sync:$mongodbDriverVersion"
17-
implementation project(":gorm-mongodb-spring-boot")
17+
implementation project(":grace-gorm-mongodb-spring-boot")
1818

1919
testImplementation"org.springframework.boot:spring-boot-starter-test:$springBootVersion"
2020
testImplementation"org.spockframework:spock-core:$spockVersion"
2121
}
22-
23-
configurations.all {
24-
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
25-
if(details.requested.group == 'javax.validation' && details.requested.name.equals('validation-api')) {
26-
details.useVersion("2.0.1.Final")
27-
}
28-
}
29-
}

examples/test-data-service/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ dependencies {
44
implementation "org.graceframework:grace-core"
55
implementation "org.springframework.boot:spring-boot-starter-actuator"
66
implementation "org.springframework.boot:spring-boot-starter-tomcat"
7-
// implementation ("org.graceframework:grace-dependencies") {
8-
// exclude module:'grails-datastore-simple'
9-
// }
107
implementation "org.graceframework:grace-plugin-codecs"
118
implementation "org.graceframework:grace-plugin-services"
129
implementation "org.graceframework:grace-plugin-datasource"
1310
implementation "org.graceframework:grace-boot"
1411
implementation "org.graceframework:grace-logging"
1512
implementation "org.graceframework.plugins:cache"
1613
implementation "org.graceframework.plugins:events"
17-
implementation project(":grails-plugin")
14+
implementation project(":grace-plugin")
1815
implementation "org.mongodb:mongodb-driver-sync:$mongodbDriverVersion"
1916
implementation "org.graceframework.plugins:views-json"
2017
implementation "org.graceframework.plugins:views-json-templates"

grails-datastore-gorm-bson/src/main/groovy/org/grails/datastore/bson/codecs/BigDecimalCodec.groovy renamed to grace-datastore-gorm-bson/src/main/groovy/org/grails/datastore/bson/codecs/BigDecimalCodec.groovy

File renamed without changes.

grails-datastore-gorm-bson/src/main/groovy/org/grails/datastore/bson/codecs/BigIntegerCodec.groovy renamed to grace-datastore-gorm-bson/src/main/groovy/org/grails/datastore/bson/codecs/BigIntegerCodec.groovy

File renamed without changes.

0 commit comments

Comments
 (0)