Skip to content

Commit

Permalink
WIP 314 Minimize Maven build for plugin descriptor
Browse files Browse the repository at this point in the history
The POM is only used to generate the Plugin descriptor.
Build and test is moving back to Gradle.
  • Loading branch information
ascheman committed Dec 14, 2024
1 parent adf110c commit 6f885e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 137 deletions.
8 changes: 1 addition & 7 deletions htmlSanityCheck-maven-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import java.util.stream.Collectors
import static org.gradle.internal.os.OperatingSystem.current

plugins {
id "java-gradle-plugin"
id "java"
}

description = 'HSC Maven Mojo'

ext {
mavenPluginToolsVersion = "3.15.1"
}
Expand Down Expand Up @@ -90,10 +88,6 @@ java {
withJavadocJar()
}

javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down
130 changes: 0 additions & 130 deletions htmlSanityCheck-maven-plugin/src/main/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<java.version>8</java.version>
</properties>


<dependencies>
<dependency>
<groupId>org.aim42.htmlSanityCheck</groupId>
Expand All @@ -33,34 +32,10 @@
<version>${mavenPluginToolsVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.soebes.itf.jupiter.extension</groupId>
<artifactId>itf-assertj</artifactId>
<version>0.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.soebes.itf.jupiter.extension</groupId>
<artifactId>itf-jupiter-extension</artifactId>
<version>0.13.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>../../src/main/java</sourceDirectory>
<outputDirectory>../../build/maven/target/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
Expand All @@ -85,111 +60,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<release>\${java.version}</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.9.9</version>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.soebes.itf.jupiter.extension</groupId>
<artifactId>itf-maven-plugin</artifactId>
<version>0.13.1</version>
<executions>
<execution>
<id>installing</id>
<phase>pre-integration-test</phase>
<goals>
<goal>install</goal>
<goal>resources-its</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<!--
! currently needed to run integration tests.
-->
<systemPropertyVariables>
<maven.version>\${maven.version}</maven.version>
<maven.home>\${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<!-- Sets the VM argument line used when integration tests are run. -->
<argLine>\${failsafeArgLine}</argLine>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.1</version>
<executions>
<execution>
<id>attach-javadoc</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 6f885e7

Please sign in to comment.