Simplify loading of plugins shared by many subprojects
This commit is contained in:
parent
1432e18c37
commit
3ce242a22c
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
|
||||
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
plugins {
|
||||
id 'de.undercouch.download' version '3.3.0'
|
||||
}
|
||||
|
||||
apply plugin: 'base'
|
||||
|
||||
import de.undercouch.gradle.tasks.download.*
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
plugins {
|
||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||
}
|
||||
apply plugin: 'com.github.hauner.jarTest'
|
||||
|
||||
apply plugin: 'cpp'
|
||||
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in New Issue