mirror of
https://github.com/google/nomulus.git
synced 2025-07-24 03:30:46 +02:00
Enabled unused-dependency check using nebula-lint. Dependencies that are not used by compile or testing are labeled with 'maybe_runtime". We leave these dependencies in the script for easy reference. Before launching Gradle-based release process we must determine which of these should be removed and which should be relabeled as runtime. Label assignment: - All dependencies recommended for removal from 'compile' are changed to maybe_runtime - All dependencies recommended for move from 'compile' to testCompile are split into two lines, one with testCompile, the other maybe_runtime Incidentally, Gradle 4.10.2 needs a groovy upgrade before it can work with Oracle JDK 11. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=219803797
37 lines
836 B
Groovy
37 lines
836 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'nebula.lint' version '10.1.2'
|
|
}
|
|
|
|
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
|
|
]
|
|
}
|
|
|
|
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')
|
|
}
|
|
}
|
|
|