delete Java impl

This commit is contained in:
dzj 2024-10-22 10:22:18 +08:00
parent 4b8a239025
commit 08a7b4d387
5 changed files with 41 additions and 62 deletions

View File

@ -1,4 +1,7 @@
import org.gradle.internal.composite.ChildBuildRegisteringSettingsLoader
plugins { plugins {
id 'groovy-gradle-plugin'
id 'com.gradle.plugin-publish' version '1.3.0' //plugin本身已经包含了Java-gradle-plugin和maven-publish id 'com.gradle.plugin-publish' version '1.3.0' //plugin本身已经包含了Java-gradle-plugin和maven-publish
} }
@ -8,10 +11,43 @@ version = '1.0'
gradlePlugin { gradlePlugin {
website = 'https://svn.youshengyun.com:3000/risesoft/y9-build-logic' website = 'https://svn.youshengyun.com:3000/risesoft/y9-build-logic'
vcsUrl = 'https://svn.youshengyun.com:3000/risesoft/y9-build-logic' vcsUrl = 'https://svn.youshengyun.com:3000/risesoft/y9-build-logic'
plugins{
} project.afterEvaluate {
removeIf { it.id.equals 'net.risesoft.y9.aspectj'}
register('y9aspectj') {
id = 'net.risesoft.y9.aspectj'
implementationClass = "NetRisesoftY9AspectjPlugin"
displayName = "Gradle convention plugin that using aspectj"
description = "Gradle convention plugin for y9digitalbase aspectj"
tags.addAll('y9','y9digitalbase','risesoft')
}
// https://docs.gradle.org/current/userguide/publishing_gradle_module_metadata.html#sub:disabling-gmm-publication removeIf { it.id.equals 'net.risesoft.y9.docker'}
tasks.withType(GenerateModuleMetadata) { register('y9docker') {
enabled = false id = 'net.risesoft.y9.docker'
implementationClass = "NetRisesoftY9DockerPlugin"
displayName = "Gradle convention plugin that using docker"
description = "Gradle convention plugin for y9digitalbase docker"
tags.addAll('y9','y9digitalbase','risesoft')
}
removeIf { it.id.equals 'net.risesoft.y9.java-conventions'}
register('y9javaConventions') {
id = 'net.risesoft.y9.java-conventions'
implementationClass = "NetRisesoftY9JavaConventionsPlugin"
displayName = "Gradle convention plugin that using java"
description = "Gradle convention plugin for y9digitalbase java convention"
tags.addAll('y9','y9digitalbase','risesoft')
}
removeIf { it.id.equals 'net.risesoft.y9.smart-doc'}
register('y9SmartDoc') {
id = 'net.risesoft.y9.smart-doc'
implementationClass = "NetRisesoftY9SmartDocPlugin"
displayName = "Gradle convention plugin that using smart doc"
description = "Gradle convention plugin for y9digitalbase smart doc"
tags.addAll('y9','y9digitalbase','risesoft')
}
}
}
} }

View File

@ -1,14 +0,0 @@
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

@ -1,14 +0,0 @@
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

@ -1,14 +0,0 @@
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

@ -1,15 +0,0 @@
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");
}
}