Skip to content

Commit b1463b2

Browse files
committed
build: use compileOnlyApi to expose AST transforms to downstream compileClasspath
Switch from `compileOnly` to `compileOnlyApi` to ensure that the `DelegateAsync` AST transformation classes are available on the downstream `compileClasspath`.
1 parent c00a24d commit b1463b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

grails-datastore-gorm-async/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ dependencies {
2929
// impl: Promises
3030
}
3131

32-
compileOnly project(':grails-datastore-async'), {
33-
// comp: DelegateAsync
32+
compileOnlyApi project(':grails-datastore-async'), {
33+
// AST (source retention annotation): DelegateAsync
3434
if (excludeUnusedTransDeps) {
3535
// API dependencies in grails-datastore-async
3636
exclude group: 'org.grails', module: 'grails-async'
3737
}
3838
}
39+
3940
compileOnly 'org.apache.groovy:groovy'
4041
}
4142

0 commit comments

Comments
 (0)