@@ -2,6 +2,13 @@ buildscript {
2
2
ext. ideaVersion = ideaVersion
3
3
ext. kotlinVersion = kotlinVersion
4
4
ext. java_version = " 17"
5
+
6
+ // Should be in buildSrc ideally
7
+ // dependencies {
8
+ // classpath(gradleApi()) {
9
+ // because("Creates a dependency on the API of the current version of Gradle, so that we can create Gradle plugins.")
10
+ // }
11
+ // }
5
12
}
6
13
7
14
plugins {
@@ -33,7 +40,34 @@ tasks.withType(Test) {
33
40
environment ' GRADLE_RELEASE_REPOSITORY' ,' https://services.gradle.org/distributions'
34
41
}
35
42
43
+ // Should be in buildSrc ideally
44
+ // @CacheableRule
45
+ // abstract class ComposedJarRule implements ComponentMetadataRule {
46
+ // @Inject abstract ObjectFactory getObjects()
47
+ //
48
+ // void execute(ComponentMetadataContext context) {
49
+ // context.details.withVariant("runtimeElements") {
50
+ // attributes {
51
+ // attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements, "composed-jar"))
52
+ // }
53
+ // }
54
+ // }
55
+ // }
56
+
36
57
dependencies {
58
+ // components {
59
+ // withModule("com.redhat.devtools.intellij:intellij-common", ComposedJarRule)
60
+ // }
61
+ components {
62
+ withModule(" com.redhat.devtools.intellij:intellij-common" ) {
63
+ withVariant(" runtimeElements" ) {
64
+ attributes {
65
+ attribute(LibraryElements . LIBRARY_ELEMENTS_ATTRIBUTE , objects. named(LibraryElements , LibraryElements . JAR ))
66
+ }
67
+ }
68
+ }
69
+ }
70
+
37
71
implementation(
38
72
" com.redhat.devtools.intellij:intellij-common:${ intellijCommonVersion} " ,
39
73
" io.fabric8:kubernetes-client:${ kubernetesClientVersion} " ,
0 commit comments