Simplify loading of plugins shared by many subprojects

This commit is contained in:
Ben Liblit 2018-01-10 22:36:57 -06:00
parent db348b4ddd
commit 2bc0768242
9 changed files with 18 additions and 34 deletions

View File

@ -1,3 +1,15 @@
////////////////////////////////////////////////////////////////////////
//
// plugin configuration must precede everything else
//
plugins {
id 'com.github.hauner.jarTest' version '1.0.1' apply false
id 'de.undercouch.download' version '3.3.0' apply false
id 'nebula.lint' version '8.3.1'
}
////////////////////////////////////////////////////////////////////////
//
// common Java setup shared by multiple projects
@ -66,13 +78,6 @@ subprojects {
// optional lint checking of Gradle scripts
//
buildscript {
repositories.jcenter()
dependencies {
classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
}
}
allprojects {
apply plugin: 'nebula.lint'
gradleLint.alwaysRun = true

View File

@ -1,8 +1,3 @@
plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
id 'de.undercouch.download' version '3.3.0'
}
sourceSets.test.java.srcDirs = ['src']

View File

@ -1,6 +1,4 @@
plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
}
apply plugin: 'com.github.hauner.jarTest'
sourceSets.test.java.srcDirs = ['src']

View File

@ -1,6 +1,4 @@
plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
}
apply plugin: 'com.github.hauner.jarTest'
sourceSets.test {
java.srcDirs = ['harness-src']

View File

@ -1,7 +1,3 @@
plugins {
id 'de.undercouch.download' version '3.3.0'
}
apply plugin: 'base'
import de.undercouch.gradle.tasks.download.*

View File

@ -1,6 +1,4 @@
plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
}
apply plugin: 'com.github.hauner.jarTest'
sourceSets.test.java.srcDirs = ['harness-src']

View File

@ -1,6 +1,4 @@
plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
}
apply plugin: 'com.github.hauner.jarTest'
apply plugin: 'cpp'

View File

@ -1,6 +1,4 @@
plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
}
apply plugin: 'com.github.hauner.jarTest'
sourceSets.test {
java.srcDirs = ['src']

View File

@ -1,6 +1,4 @@
plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
}
apply plugin: 'com.github.hauner.jarTest'
sourceSets.test.java.srcDirs = ['src']