Skip to content

Commit 5b96c21

Browse files
committed
Remove grace-datastore-async
Use `grace-async-core` instead of `grace-datastore-async` See graceframework/grace-async#78 Closes gh-77
1 parent 7ea6b72 commit 5b96c21

File tree

8 files changed

+11
-287
lines changed

8 files changed

+11
-287
lines changed

grace-datastore-async/build.gradle

Lines changed: 0 additions & 7 deletions
This file was deleted.

grace-datastore-async/src/main/groovy/org/grails/datastore/gorm/async/transform/DelegateAsync.groovy

Lines changed: 0 additions & 50 deletions
This file was deleted.

grace-datastore-async/src/main/groovy/org/grails/datastore/gorm/async/transform/DelegateAsyncTransformation.java

Lines changed: 0 additions & 191 deletions
This file was deleted.

grace-datastore-async/src/test/groovy/org/grails/datastore/gorm/async/transform/DelegateAsyncSpec.groovy

Lines changed: 0 additions & 31 deletions
This file was deleted.

grace-datastore-gorm-async/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
dependencies {
6+
api libs.grace.async.core
67
api project(":grace-datastore-gorm")
7-
api project(":grace-datastore-async")
88
testImplementation project(":grace-datastore-gorm-tck")
99
}

grace-datastore-gorm-async/src/main/groovy/org/grails/datastore/gorm/async/AsyncQuery.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
/* Copyright (C) 2013 SpringSource
1+
/*
2+
* Copyright 2013-2025 the original author or authors.
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
67
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
89
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -14,16 +15,17 @@
1415
*/
1516
package org.grails.datastore.gorm.async
1617

18+
import grails.async.DelegateAsync
1719
import grails.async.decorator.PromiseDecorator
1820
import grails.async.decorator.PromiseDecoratorProvider
1921

20-
import org.grails.datastore.gorm.async.transform.DelegateAsync
2122
import org.grails.datastore.gorm.query.GormOperations
2223

2324
/**
2425
* Exposes all methods from the {@link GormOperations} interface asynchronously
2526
*
2627
* @author Graeme Rocher
28+
* @author Michael Yan
2729
* @since 2.3
2830
*/
2931
class AsyncQuery<E> implements PromiseDecoratorProvider {

grace-datastore-gorm-async/src/main/groovy/org/grails/datastore/gorm/async/GormAsyncStaticApi.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
/* Copyright (C) 2013 SpringSource
1+
/*
2+
* Copyright 2013-2025 the original author or authors.
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
67
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
89
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,19 +17,20 @@ package org.grails.datastore.gorm.async
1617

1718
import groovy.transform.CompileStatic
1819

20+
import grails.async.DelegateAsync
1921
import grails.async.Promise
2022
import grails.async.Promises
2123
import grails.async.decorator.PromiseDecorator
2224
import grails.async.decorator.PromiseDecoratorProvider
2325
import grails.gorm.api.GormStaticOperations
2426

2527
import org.grails.datastore.gorm.GormStaticApi
26-
import org.grails.datastore.gorm.async.transform.DelegateAsync
2728

2829
/**
2930
* Transforms the GormStaticApi into an asynchronous API
3031
*
3132
* @author Graeme Rocher
33+
* @author Michael Yan
3234
* @since 2.3
3335
*/
3436
class GormAsyncStaticApi<D> implements PromiseDecoratorProvider {

settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ include ("grace-datastore-core",
55

66
// Core GORM Implementation projects
77
'grace-datastore-gorm',
8-
'grace-datastore-async',
98
'grace-datastore-gorm-async',
109
'grace-datastore-gorm-validation',
1110
'grace-datastore-gorm-support',

0 commit comments

Comments
 (0)