sdedic commented on code in PR #4495:
URL: https://github.com/apache/netbeans/pull/4495#discussion_r948051871
##########
enterprise/micronaut/nbproject/project.xml:
##########
@@ -68,6 +68,32 @@
<specification-version>1.18</specification-version>
</run-dependency>
</dependency>
+ <dependency>
+ <code-name-base>org.netbeans.modules.maven</code-name-base>
+ <build-prerequisite/>
+ <compile-dependency/>
+ <run-dependency>
+ <release-version>2</release-version>
+ <specification-version>2.154</specification-version>
+ </run-dependency>
+ </dependency>
+ <dependency>
+
<code-name-base>org.netbeans.modules.project.dependency</code-name-base>
+ <build-prerequisite/>
+ <compile-dependency/>
+ <run-dependency>
+ <implementation-version/>
+ </run-dependency>
+ </dependency>
+ <dependency>
+
<code-name-base>org.netbeans.modules.maven.embedder</code-name-base>
Review Comment:
Well. I gave a few thoughts to some abstraction, but ... even if I make some
declarative support in the layer, the Micronaut will not be entirely
indepenent: it would need to provide dual declarations anyway, since maven +
gradle identifiers for the native-image plugin differ; so maybe there would not
be a formal dependency, but actual yes.
I thought about supporting some 'declarative' query, such as "give me a
variable Foo", that would be registered in project type's XML area and
translated to plugin-execution-goal-configuration (maven) or extension-property
for gradle. But I'd fear that this query need not to satisfy further usecases
from different future project-neutral queries: not all data are just variables
to be picked up.
I'd better wait with such support after more users appear, but this could be
the an abstract way to query project's setup.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists