@@ -60,26 +60,32 @@ subprojects {
60
60
}
61
61
}
62
62
63
+ subprojects.forEach { project ->
64
+ with (project) {
65
+ apply (plugin = " java-gradle-plugin" )
66
+ project.afterEvaluate {
67
+ // java-gradle-plugin requires this block, but we already added the definitions in META-INF for unit testing...
68
+ configure<GradlePluginDevelopmentExtension > {
69
+ plugins {
70
+ create(" ${project.name.capitalize()} Plugin" ) {
71
+ id = " com.bakdata.${project.name} "
72
+ implementationClass = " com.bakdata.gradle.${project.name.capitalize()} Plugin"
73
+ description = project.description
74
+ displayName = " Bakdata $name plugin"
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+
63
82
// config for gradle plugin portal
64
83
// doesn't support snapshot, so we add config only if release version
65
84
if (! version.toString().endsWith(" -SNAPSHOT" )) {
66
85
subprojects.forEach { project ->
67
86
with (project) {
68
- // com.gradle.plugin-publish depends on java-gradle-plugin, but it screws a bit this project
69
- apply (plugin = " java-gradle-plugin" )
70
87
apply (plugin = " com.gradle.plugin-publish" )
71
88
project.afterEvaluate {
72
- // java-gradle-plugin requires this block, but we already added the definitions in META-INF for unit testing...
73
- configure<GradlePluginDevelopmentExtension > {
74
- plugins {
75
- create(" ${project.name.capitalize()} Plugin" ) {
76
- id = " com.bakdata.${project.name} "
77
- implementationClass = " com.bakdata.gradle.${project.name.capitalize()} Plugin"
78
- description = project.description
79
- displayName = " Bakdata $name plugin"
80
- }
81
- }
82
- }
83
89
// actual block of plugin portal config, need to be done on each subproject as the plugin does not support multi-module projects yet...
84
90
configure< com.gradle.publish.PluginBundleExtension > {
85
91
website = " https://github.com/bakdata/gradle-plugins"
0 commit comments