What the difference in applying gradle plugin

I don’t understand gradle plugins block

apply plugin: 'someplugin1'
apply plugin: 'maven'

and other one:

plugins {
   id 'org.hidetake.ssh' version '1.1.2'
}

In first block We have some plugin name. in second one package and version. I don’t understand where I should use first block and when second one.

3 Answers
3

Leave a Comment