Move the maven license plugin into a 'license' profile

This commit is contained in:
Christian Tzolov
2024-03-08 10:12:47 +01:00
parent ba940395b6
commit 4fa2c6ca7f
2 changed files with 26 additions and 10 deletions

View File

@@ -83,7 +83,7 @@ You can find more details in the [Reference Documentation](https://docs.spring.i
Spring AI supports many AI models. For an overview see here. Specific models currently supported are
* OpenAI
*
*
**Prompts:** Central to AI model interaction is the Prompt, which provides specific instructions for the AI to act upon.
@@ -196,5 +196,10 @@ To reformat using the [java-format plugin](https://github.com/spring-io/spring-j
To update the year on license headers using the [license-maven-plugin](https://oss.carbou.me/license-maven-plugin/#goals)
```shell
./mvnw license:update-file-header
./mvnw license:update-file-header -Plicense
```
To check javadocs using the [javadoc:javadoc](https://maven.apache.org/plugins/maven-javadoc-plugin/)
```shell
./mvnw javadoc:javadoc -Pjavadoc
```

27
pom.xml
View File

@@ -262,6 +262,22 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>license</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.1</version>
@@ -327,15 +343,10 @@ limitations under the License.
</licenseSets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
</plugin>
</plugins>
</build>
<profiles>
</plugins>
</build>
</profile>
<profile>
<id>javadoc</id>
<activation>