add java plugin

This commit is contained in:
dzj 2024-10-17 10:47:57 +08:00
parent 2c0c6c22f4
commit 4b8a239025
5 changed files with 57 additions and 1 deletions

View File

@ -1,5 +1,4 @@
plugins {
id 'groovy-gradle-plugin' //groovy DSL
id 'com.gradle.plugin-publish' version '1.3.0' //plugin本身已经包含了Java-gradle-plugin和maven-publish
}

View File

@ -0,0 +1,14 @@
package net.risesoft.y9;
import org.gradle.api.NonNullApi;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
@NonNullApi
abstract public class AspectjPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getPlugins().apply("io.freefair.aspectj.post-compile-weaving");
}
}

View File

@ -0,0 +1,14 @@
package net.risesoft.y9;
import org.gradle.api.NonNullApi;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
@NonNullApi
abstract public class DockerPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getPlugins().apply("io.freefair.aspectj.post-compile-weaving");
}
}

View File

@ -0,0 +1,14 @@
package net.risesoft.y9;
import org.gradle.api.NonNullApi;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
@NonNullApi
abstract public class JavaConventionsPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getPlugins().apply("io.freefair.aspectj.post-compile-weaving");
}
}

View File

@ -0,0 +1,15 @@
package net.risesoft.y9;
import org.gradle.api.NonNullApi;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
@NonNullApi
abstract public class SmartDocPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getPlugins().apply("io.freefair.aspectj.post-compile-weaving");
}
}