Search Gradle plugins

io.github.godfather1103.gradle-base-plugin

Owner: Jack Chu

Encapsulates some common syntax, such as setting Java options.encoding=UTF-8, clearing Maven target directory when cleaning.

https://github.com/godfather1103

Sources: https://github.com/godfather1103/gradle-base-plugin

Version 1.0

Created 14 May 2021.

封装了一些自己常用的语法,比如将Java编译编码设置为UTF-8,清除Maven打包生产的目录等(Encapsulates some common syntax, such as setting Java options.encoding=UTF-8, clearing Maven target directory when cleaning)

Using the plugins DSL:

plugins {
  id("io.github.godfather1103.gradle-base-plugin") version "1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.godfather1103:gradle-base-plugin:1.0")
  }
}

apply(plugin = "io.github.godfather1103.gradle-base-plugin")

Using the plugins DSL:

plugins {
  id "io.github.godfather1103.gradle-base-plugin" version "1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.godfather1103:gradle-base-plugin:1.0"
  }
}

apply plugin: "io.github.godfather1103.gradle-base-plugin"

Learn how to apply plugins to subprojects