Skip to content

Update gradle example to use plugins block. #394

@junghoon-vans

Description

@junghoon-vans

As currently written in the example code for gradle, It is the legacy way to set up plugins.

If we were to change to code that uses the plugins block, it would be a bit more user-friendly,
nd it would be a simple change to make by reducing the number of lines in the code example.

AS-IS

buildscript {
	repositories {
		mavenLocal()
		mavenCentral()
	}
	dependencies {
		classpath("io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.40")
	}
}

apply plugin: 'io.spring.javaformat'

TO-BE

plugins {
	 id 'io.spring.javaformat' version '0.0.40'
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions