Load plugins using "plugins" closure rather than "apply plugin"
Apparently the latter is considered a "legacy method": <https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application>.
This commit is contained in:
parent
24d7757814
commit
e2ce6a84b0
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
sourceSets.test.java.srcDirs = ['src']
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'com.github.hauner.jarTest'
|
||||
plugins {
|
||||
id 'com.github.hauner.jarTest'
|
||||
}
|
||||
|
||||
sourceSets.test {
|
||||
java.srcDirs = ['harness-src']
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'base'
|
||||
plugins {
|
||||
id 'base'
|
||||
}
|
||||
|
||||
task downloadAjaxslt(type: VerifiedDownload) {
|
||||
def version = '0.8.1'
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'com.github.hauner.jarTest'
|
||||
plugins {
|
||||
id 'com.github.hauner.jarTest'
|
||||
}
|
||||
|
||||
sourceSets.test {
|
||||
java.srcDirs = ['harness-src']
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
apply plugin: 'cpp'
|
||||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'cpp'
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
apply plugin: 'eclipse'
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
||||
|
||||
|
|
Loading…
Reference in New Issue