This project is a standalone gradle plugin that allows easy integration of AnnotatorScanner to any Java project.
annotator-gradle-plugin is still under construction.
- Open a terminal and cd into this repository.
- Run
./gradlew publishToMavenLocal
- In your target Java Project's
build.gradle
add the following- In the
plugins{}
configuration block addid "net.ltgt.annotator" version "0.0.1"
- In the
repositories{}
configuration block addmavenLocal()
- In the
- In your target Java Project's
settings.gradle
add the following at the start of the file.
pluginManagement {
repositories {
gradlePluginPortal()
mavenLocal()
}
}
- To pass the necessary
scanner.xml
config path, you can add it to theannotator{}
configuration block.
plugins {
id 'java'
id "net.ltgt.errorprone" version "3.1.0"
id "edu.ucr.cs.riple.annotator.plugin" version "0.0.1"
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
errorprone "com.google.errorprone:error_prone_core:2.4.0"
errorproneJavac "com.google.errorprone:javac:9+181-r4173-1"
}