Search Gradle plugins

io.github.luiqn2007.gradle_plugins.build_tasks

Owner: lq2007

Running some tasks before building, you can create tasks in your projects with java and run before compileJava task, or execute "runSourceTask" task. To use this plugin, you need add compileOnly dependency "com.github.luiqn2007:UselessPluginLib", and create task class in `lq2007.plugins.gradle_plugin` package in your source, implement lq2007.plugins.gradle_plugin.support.ISourcePlugin interface. You can create or edit source by javaparser.

https://github.com/luiqn2007/UselessGradlePlugin

Sources: https://github.com/luiqn2007/UselessGradlePlugin

Version 1.2.6 (latest)

Created 27 February 2022.

Running some tasks before building, you can create tasks in your projects with java and run before compileJava task, or execute "runSourceTask" task. To use this plugin, you need add compileOnly dependency "com.github.luiqn2007:UselessPluginLib", and create task class implement lq2007.plugins.gradle_plugin.support.ISourcePlugin interface. You can create or edit source by javaparser. More detail please see github. Because of network, I often publish failed. So please ignore the fourth version.

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.luiqn2007.gradle_plugins.build_tasks") version "1.2.6"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("io.github.luiqn2007.gradle_plugins.build_tasks:io.github.luiqn2007.gradle_plugins.build_tasks.gradle.plugin:1.2.6")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.luiqn2007.gradle_plugins.build_tasks")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.luiqn2007.gradle_plugins.build_tasks:io.github.luiqn2007.gradle_plugins.build_tasks.gradle.plugin:1.2.6")
      }
    }
    
    apply(plugin = "io.github.luiqn2007.gradle_plugins.build_tasks")
  • Applying plugins to all subprojects .