在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):palantir/gradle-processors开源软件地址(OpenSource Url):https://github.com/palantir/gradle-processors开源编程语言(OpenSource Language):Groovy 99.7%开源软件介绍(OpenSource Introduction):Gradle ProcessorsA plugin for Gradle that cleans up integration of Java annotation processors with the Eclipse and IDEA plugins. QuickstartTo use it, add the following to your projects' build.gradle file: plugins {
id 'org.inferred.processors' version '<LATEST VERSION>'
} The dependencies {
annotationProcessor 'com.google.dagger:dagger-compiler:2.8'
implementation 'com.google.dagger:dagger:2.8'
} Gradle 4.5 and earlierIf you are still using Gradle 4.5 or earlier, you can use the legacy dependencies {
processor 'com.google.auto.value:auto-value:1.0'
} This functions as a combination of the modern "annotationProcessor" and "compileOnly" blocks: it both enables the annotation processor, and makes any annotations it exposes available to use in source code. Gradle 2.0 and earlierFor users of Gradle 2.0 and earlier, the buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.org.inferred:gradle-processors:<LATEST VERSION>'
}
} And just the apply directive to your subproject build.gradle files: apply plugin: 'org.inferred.processors' You can now include annotation processors with the Building from sourceTo build the project from source, run License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论