Simplify loading of plugins shared by many subprojects
This commit is contained in:
parent
db348b4ddd
commit
2bc0768242
19
build.gradle
19
build.gradle
|
@ -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
|
// common Java setup shared by multiple projects
|
||||||
|
@ -66,13 +78,6 @@ subprojects {
|
||||||
// optional lint checking of Gradle scripts
|
// optional lint checking of Gradle scripts
|
||||||
//
|
//
|
||||||
|
|
||||||
buildscript {
|
|
||||||
repositories.jcenter()
|
|
||||||
dependencies {
|
|
||||||
classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
apply plugin: 'nebula.lint'
|
apply plugin: 'nebula.lint'
|
||||||
gradleLint.alwaysRun = true
|
gradleLint.alwaysRun = true
|
||||||
|
|
|
@ -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']
|
sourceSets.test.java.srcDirs = ['src']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
plugins {
|
apply plugin: 'com.github.hauner.jarTest'
|
||||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets.test.java.srcDirs = ['src']
|
sourceSets.test.java.srcDirs = ['src']
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
plugins {
|
apply plugin: 'com.github.hauner.jarTest'
|
||||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets.test {
|
sourceSets.test {
|
||||||
java.srcDirs = ['harness-src']
|
java.srcDirs = ['harness-src']
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
plugins {
|
|
||||||
id 'de.undercouch.download' version '3.3.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'base'
|
apply plugin: 'base'
|
||||||
|
|
||||||
import de.undercouch.gradle.tasks.download.*
|
import de.undercouch.gradle.tasks.download.*
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
plugins {
|
apply plugin: 'com.github.hauner.jarTest'
|
||||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets.test.java.srcDirs = ['harness-src']
|
sourceSets.test.java.srcDirs = ['harness-src']
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
plugins {
|
apply plugin: 'com.github.hauner.jarTest'
|
||||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'cpp'
|
apply plugin: 'cpp'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
plugins {
|
apply plugin: 'com.github.hauner.jarTest'
|
||||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets.test {
|
sourceSets.test {
|
||||||
java.srcDirs = ['src']
|
java.srcDirs = ['src']
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
plugins {
|
apply plugin: 'com.github.hauner.jarTest'
|
||||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets.test.java.srcDirs = ['src']
|
sourceSets.test.java.srcDirs = ['src']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue