1
0
mirror of https://github.com/google/nomulus synced 2026-07-20 15:02:30 +00:00
Files
nomulus/gradle/build.gradle
T
weiminyu 783c010ab4 Add a IDE helper plugin for annotation processors
Without the net.ltgt.apt plugin, Dagger does not retain generated source code,
and AutoValue mixes generated source code with classes. The new plugin fixes this
problem, making it easier to work with IDEs.

Based on limit experience, Intellij Idea can properly import this project. We
may consider adding IDE-specific plugins in the future.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=220802052
2018-11-12 14:51:40 -05:00

44 lines
1.0 KiB
Groovy

plugins {
id 'java'
id 'nebula.lint' version '10.1.2'
// Config helper for annotation processors such as AutoValue and Dagger.
// Ensures that source code is generated at an appropriate location.
id 'net.ltgt.apt' version '0.19'
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
version = '1.0'
apply plugin: 'java'
apply plugin: 'nebula.lint'
gradleLint.rules = [
// Checks if Gradle wrapper is up-to-date
'archaic-wrapper',
// Checks for indirect dependencies with dynamic version spec. Best
// practice calls for declaring them with specific versions.
'undeclared-dependency',
'unused-dependency'
// TODO(weiminyu): enable more dependency checks
]
apply plugin: 'net.ltgt.apt'
}
project(':core') {
dependencies {
// Custom-built objectify jar at commit ecd5165, included in Nomulus
// release.
implementation files(
"${rootDir}/../third_party/objectify/v4_1/objectify-4.1.3.jar")
testImplementation project(':third_party')
}
}