AlexanderAshitkin commented on code in PR #389: URL: https://github.com/apache/maven-build-cache-extension/pull/389#discussion_r2423084387
########## src/main/resources/plugin-parameters/maven-compiler-plugin.xml: ########## @@ -0,0 +1,327 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<plugin xmlns="http://maven.apache.org/PLUGIN-PARAMETERS/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/PLUGIN-PARAMETERS/1.0.0 plugin-parameters.xsd"> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <minVersion>3.11.0</minVersion> + + <goals> + <goal> + <name>compile</name> + <parameters> + <!-- FUNCTIONAL: Affect compiled bytecode or compilation behavior --> + <parameter> + <name>source</name> + <type>functional</type> + <description>Source JDK version for compilation</description> + </parameter> + <parameter> + <name>target</name> + <type>functional</type> + <description>Target JDK version for compiled bytecode</description> + </parameter> + <parameter> + <name>release</name> + <type>functional</type> + <description>JDK release version (combines source and target)</description> + </parameter> + <parameter> + <name>encoding</name> + <type>functional</type> + <description>Source file encoding</description> + </parameter> + <parameter> + <name>debug</name> + <type>functional</type> + <description>Include debugging information in compiled bytecode</description> + </parameter> + <parameter> + <name>debuglevel</name> + <type>functional</type> + <description>Level of debugging information (lines, vars, source)</description> + </parameter> + <parameter> + <name>optimize</name> + <type>functional</type> + <description>Optimize compiled bytecode</description> + </parameter> + <parameter> + <name>compilerArgs</name> + <type>functional</type> + <description>Additional compiler arguments</description> + </parameter> + <parameter> + <name>compilerArgument</name> + <type>functional</type> + <description>Single additional compiler argument</description> + </parameter> + <parameter> + <name>annotationProcessorPaths</name> + <type>functional</type> + <description>Classpath for annotation processors</description> + </parameter> + <parameter> + <name>annotationProcessors</name> + <type>functional</type> + <description>Annotation processors to run</description> + </parameter> + <parameter> + <name>proc</name> + <type>functional</type> + <description>Annotation processing mode (none, only, proc)</description> + </parameter> + <parameter> + <name>executable</name> + <type>functional</type> + <description>Path to javac executable (different compiler may produce different output)</description> + </parameter> + <parameter> + <name>parameters</name> + <type>functional</type> + <description>Generate metadata for method parameters</description> + </parameter> + <parameter> + <name>enablePreview</name> + <type>functional</type> + <description>Enable preview features</description> + </parameter> + + <!-- BEHAVIORAL: Affect how compilation runs but not the output --> + <parameter> + <name>verbose</name> + <type>behavioral</type> + <description>Verbose compiler output</description> + </parameter> + <parameter> + <name>showWarnings</name> + <type>behavioral</type> + <description>Show compilation warnings</description> + </parameter> + <parameter> + <name>showDeprecation</name> + <type>behavioral</type> + <description>Show deprecation warnings</description> + </parameter> + <parameter> + <name>skip</name> + <type>behavioral</type> Review Comment: It might be a functional parameter because setting it to true or false produces different outputs. The same applies to the tests. Builds that skip tests and those that do not are semantically different from the consumer's perspective. For example, one cannot deploy an untested build. -- 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]
