add java plugin
This commit is contained in:
parent
2c0c6c22f4
commit
4b8a239025
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
|
@ -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");
|
||||
}
|
||||
}
|
|
@ -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");
|
||||
}
|
||||
}
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue