Merge pull request #312 from liblit/gradle-load-plugins-modernization

Load Gradle plugins using “plugins” closure rather than “apply plugin”
This commit is contained in:
Julian Dolby 2018-06-04 12:22:33 -04:00 committed by GitHub
commit d2852beebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 51 additions and 21 deletions

View File

@ -1,4 +1,6 @@
apply plugin: 'eclipse'
plugins {
id 'eclipse'
}
sourceSets.test.java.srcDirs = ['src']

View File

@ -1,5 +1,7 @@
apply plugin: 'com.github.hauner.jarTest'
apply plugin: 'eclipse'
plugins {
id 'com.github.hauner.jarTest'
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,4 +1,6 @@
apply plugin: 'eclipse'
plugins {
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

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

View File

@ -1,4 +1,6 @@
apply plugin: 'base'
plugins {
id 'base'
}
task downloadAjaxslt(type: VerifiedDownload) {
def version = '0.8.1'

View File

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

View File

@ -1,6 +1,8 @@
apply plugin: 'com.github.hauner.jarTest'
apply plugin: 'cpp'
apply plugin: 'eclipse'
plugins {
id 'com.github.hauner.jarTest'
id 'cpp'
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,5 +1,7 @@
apply plugin: 'cpp'
apply plugin: 'eclipse'
plugins {
id 'cpp'
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,4 +1,6 @@
apply plugin: 'eclipse'
plugins {
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,5 +1,7 @@
apply plugin: 'com.github.hauner.jarTest'
apply plugin: 'eclipse'
plugins {
id 'com.github.hauner.jarTest'
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,4 +1,6 @@
apply plugin: 'eclipse'
plugins {
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,5 +1,7 @@
apply plugin: 'com.github.hauner.jarTest'
apply plugin: 'eclipse'
plugins {
id 'com.github.hauner.jarTest'
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,4 +1,6 @@
apply plugin: 'eclipse'
plugins {
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,4 +1,6 @@
apply plugin: 'eclipse'
plugins {
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'

View File

@ -1,4 +1,6 @@
apply plugin: 'eclipse'
plugins {
id 'eclipse'
}
eclipse.project.natures 'org.eclipse.pde.PluginNature'