我试图在grails之外单独使用新的grails eventBus API。
我已经建立了gradle项目并将jcenter()添加到存储库中
gradle.build
plugins {
id 'groovy'
id 'java'
}
group 'com.softwood'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.5.2'
//add Logback
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'ch.qos.logback:logback-core:1.2.3'
compile 'org.slf4j:slf4j-api:1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/org.spockframework/spock-core
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.1-groovy-2.4'
compile "org.grails.plugins:events:3.3.1"
compile "org.grails:grails-events-gpars:3.3.1"
}
运行构建,它会为我下载jars-但是我根本无法完善基础jars中的注释
我正在阅读的最新指南是events API
其中一个示例显示了
import grails.events.annotation.*
...
class SumService {
@Publisher
但是,我的构建无法解析'grails.events.annotation。*'
当我查看核心插件jar时,这就是我在intellij中看到的内容
有人知道哪个jar具有API注释“发布者”和“订阅者”所需的注释类依赖性吗?有点烂