Move buid config to pom.xml
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										177
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										177
									
								
								pom.xml
									
									
									
									
									
								
							@ -25,7 +25,7 @@
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.graylog.plugins</groupId>
 | 
			
		||||
        <artifactId>graylog-plugin-web-parent</artifactId>
 | 
			
		||||
        <version>5.0.0</version>
 | 
			
		||||
        <version>6.0.0</version>
 | 
			
		||||
        <relativePath>../graylog2-server/graylog-plugin-parent/graylog-plugin-web-parent</relativePath>
 | 
			
		||||
    </parent>
 | 
			
		||||
 | 
			
		||||
@ -54,56 +54,69 @@
 | 
			
		||||
 | 
			
		||||
    <properties>
 | 
			
		||||
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
			
		||||
        <maven.compiler.source>17</maven.compiler.source>
 | 
			
		||||
        <maven.compiler.target>17</maven.compiler.target>
 | 
			
		||||
        <maven.compiler.release>11</maven.compiler.release>
 | 
			
		||||
        <maven.compiler.source>11</maven.compiler.source>
 | 
			
		||||
        <maven.compiler.target>11</maven.compiler.target>
 | 
			
		||||
        <maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
 | 
			
		||||
 | 
			
		||||
        <!-- Plugins will not be deployed by default - set to `false` if you actually want to deploy it -->
 | 
			
		||||
        <maven.deploy.skip>true</maven.deploy.skip>
 | 
			
		||||
 | 
			
		||||
        <graylog.version>${project.parent.version}</graylog.version>
 | 
			
		||||
        <graylog.plugin-dir>/usr/share/graylog-server/plugin</graylog.plugin-dir>
 | 
			
		||||
 | 
			
		||||
        <graylog.version>6.0.0</graylog.version>
 | 
			
		||||
        <guice.version>7.0.0</guice.version>
 | 
			
		||||
        <auto-value.version>1.10.4</auto-value.version>
 | 
			
		||||
        <auto-value-javabean.version>2.5.2</auto-value-javabean.version>
 | 
			
		||||
        <jackson.version>2.17.1</jackson.version>
 | 
			
		||||
        <validation-api.version>3.0.2</validation-api.version>
 | 
			
		||||
        <joda-time.version>2.12.7</joda-time.version>
 | 
			
		||||
        <commons-lang3.version>3.14.0</commons-lang3.version>
 | 
			
		||||
        <metrics.version>4.2.25</metrics.version>
 | 
			
		||||
        <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
 | 
			
		||||
        <license-maven.version>4.3</license-maven.version>
 | 
			
		||||
 | 
			
		||||
        <!-- Nodejs dependencies -->
 | 
			
		||||
        <nodejs.version>v18.18.0</nodejs.version>
 | 
			
		||||
        <yarn.version>v1.22.19</yarn.version>
 | 
			
		||||
 | 
			
		||||
        <!-- Plugin versions -->
 | 
			
		||||
        <license-maven.version>4.3</license-maven.version>
 | 
			
		||||
        <download-maven-plugin.version>1.6.8.1</download-maven-plugin.version>
 | 
			
		||||
    </properties>
 | 
			
		||||
 | 
			
		||||
<!--    <distributionManagement>
 | 
			
		||||
        <snapshotRepository>
 | 
			
		||||
            <id>sonatype-nexus-snapshots</id>
 | 
			
		||||
            <name>Sonatype Nexus Snapshots</name>
 | 
			
		||||
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
 | 
			
		||||
        </snapshotRepository>
 | 
			
		||||
        <repository>
 | 
			
		||||
            <id>sonatype-nexus-staging</id>
 | 
			
		||||
            <name>Nexus Release Repository</name>
 | 
			
		||||
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
 | 
			
		||||
        </repository>
 | 
			
		||||
    </distributionManagement>
 | 
			
		||||
 | 
			
		||||
    <repositories>
 | 
			
		||||
-->        <!-- to make our snapshot releases work with Travis et al -->
 | 
			
		||||
<!--        <repository>
 | 
			
		||||
            <id>sonatype-nexus-snapshots</id>
 | 
			
		||||
            <name>Sonatype Nexus Snapshots</name>
 | 
			
		||||
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
 | 
			
		||||
            <releases>
 | 
			
		||||
                <enabled>false</enabled>
 | 
			
		||||
            </releases>
 | 
			
		||||
            <snapshots>
 | 
			
		||||
                <enabled>true</enabled>
 | 
			
		||||
            </snapshots>
 | 
			
		||||
        </repository>
 | 
			
		||||
        <repository>
 | 
			
		||||
            <id>sonatype-nexus-releases</id>
 | 
			
		||||
            <name>Sonatype Nexus Releases</name>
 | 
			
		||||
            <url>https://oss.sonatype.org/content/repositories/releases</url>
 | 
			
		||||
            <releases>
 | 
			
		||||
                <enabled>true</enabled>
 | 
			
		||||
            </releases>
 | 
			
		||||
            <snapshots>
 | 
			
		||||
                <enabled>false</enabled>
 | 
			
		||||
            </snapshots>
 | 
			
		||||
        </repository>
 | 
			
		||||
    </repositories>
 | 
			
		||||
-->
 | 
			
		||||
    <dependencies>
 | 
			
		||||
        <!-- com.codahale.metrics -->
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>io.dropwizard.metrics</groupId>
 | 
			
		||||
            <artifactId>metrics-core</artifactId>
 | 
			
		||||
            <version>${metrics.version}</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>com.fasterxml.jackson.core</groupId>
 | 
			
		||||
            <artifactId>jackson-databind</artifactId>
 | 
			
		||||
            <version>${jackson.version}</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>jakarta.validation</groupId>
 | 
			
		||||
            <artifactId>jakarta.validation-api</artifactId>
 | 
			
		||||
            <version>${validation-api.version}</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>joda-time</groupId>
 | 
			
		||||
            <artifactId>joda-time</artifactId>
 | 
			
		||||
            <version>${joda-time.version}</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.apache.commons</groupId>
 | 
			
		||||
            <artifactId>commons-lang3</artifactId>
 | 
			
		||||
            <version>${commons-lang3.version}</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>com.google.auto.value</groupId>
 | 
			
		||||
            <artifactId>auto-value-annotations</artifactId>
 | 
			
		||||
            <version>${auto-value.version}</version>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.graylog2</groupId>
 | 
			
		||||
            <artifactId>graylog2-server</artifactId>
 | 
			
		||||
@ -118,6 +131,24 @@
 | 
			
		||||
            <type>test-jar</type>
 | 
			
		||||
            <scope>test</scope>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.slf4j</groupId>
 | 
			
		||||
            <artifactId>slf4j-jdk14</artifactId>
 | 
			
		||||
            <version>1.7.21</version>
 | 
			
		||||
            <scope>provided</scope>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>com.google.inject</groupId>
 | 
			
		||||
            <artifactId>guice</artifactId>
 | 
			
		||||
            <version>${guice.version}</version>
 | 
			
		||||
            <scope>provided</scope>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>com.google.inject.extensions</groupId>
 | 
			
		||||
            <artifactId>guice-assistedinject</artifactId>
 | 
			
		||||
            <version>${guice.version}</version>
 | 
			
		||||
            <scope>provided</scope>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>com.google.auto.value</groupId>
 | 
			
		||||
            <artifactId>auto-value</artifactId>
 | 
			
		||||
@ -147,42 +178,12 @@
 | 
			
		||||
        </resources>
 | 
			
		||||
        <plugins>
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <groupId>com.mycila</groupId>
 | 
			
		||||
                <artifactId>license-maven-plugin</artifactId>
 | 
			
		||||
                <groupId>de.thetaphi</groupId>
 | 
			
		||||
                <artifactId>forbiddenapis</artifactId>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <licenseSets>
 | 
			
		||||
                        <licenseSet>
 | 
			
		||||
                            <header>com/mycila/maven/plugin/license/templates/SSPL-1.txt</header>
 | 
			
		||||
                            <properties>
 | 
			
		||||
                                <project.inceptionYear>2024</project.inceptionYear>
 | 
			
		||||
                                <owner>johan@nosd.in</owner>
 | 
			
		||||
                            </properties>
 | 
			
		||||
                            <includes>
 | 
			
		||||
                                <include>**/src/main/java/**</include>
 | 
			
		||||
                                <include>**/src/test/java/**</include>
 | 
			
		||||
                                <include>**/pom.xml</include>
 | 
			
		||||
                                <include>*.js</include>
 | 
			
		||||
                                <include>src/web/**/*.js</include>
 | 
			
		||||
                                <include>src/web/**/*.jsx</include>
 | 
			
		||||
                                <include>src/web/**/*.ts</include>
 | 
			
		||||
                                <include>src/web/**/*.tsx</include>
 | 
			
		||||
                                <include>src/web/**/*.css</include>
 | 
			
		||||
                            </includes>
 | 
			
		||||
                            <excludes>
 | 
			
		||||
                                <exclude>*.config.js</exclude>
 | 
			
		||||
                            </excludes>
 | 
			
		||||
                        </licenseSet>
 | 
			
		||||
                    </licenseSets>
 | 
			
		||||
                    <skip>true</skip>
 | 
			
		||||
                </configuration>
 | 
			
		||||
                <executions>
 | 
			
		||||
                    <execution>
 | 
			
		||||
                        <goals>
 | 
			
		||||
                            <goal>check</goal>
 | 
			
		||||
                        </goals>
 | 
			
		||||
                    </execution>
 | 
			
		||||
                </executions>
 | 
			
		||||
            </plugin>
 | 
			
		||||
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <artifactId>maven-assembly-plugin</artifactId>
 | 
			
		||||
                <configuration>
 | 
			
		||||
@ -193,12 +194,25 @@
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <groupId>org.apache.maven.plugins</groupId>
 | 
			
		||||
                <artifactId>maven-compiler-plugin</artifactId>
 | 
			
		||||
                <version>3.10.1</version>
 | 
			
		||||
                <version>3.13.0</version>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <release>17</release>
 | 
			
		||||
                    <showWarnings>true</showWarnings>
 | 
			
		||||
                    <showDeprecation>true</showDeprecation>
 | 
			
		||||
                    <forceJavacCompilerUse>true</forceJavacCompilerUse>
 | 
			
		||||
                    <forceJavacCompilerUse>false</forceJavacCompilerUse>
 | 
			
		||||
                    <fork>true</fork>
 | 
			
		||||
                    <compilerArgs>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
 | 
			
		||||
                        <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED</arg>
 | 
			
		||||
                    </compilerArgs>
 | 
			
		||||
                    <annotationProcessors>
 | 
			
		||||
                        <annotationProcessor>com.google.auto.value.processor.AutoValueProcessor</annotationProcessor>
 | 
			
		||||
                    </annotationProcessors>
 | 
			
		||||
@ -224,6 +238,12 @@
 | 
			
		||||
                <version>2.4.1</version>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <minimizeJar>false</minimizeJar>
 | 
			
		||||
                    <artifactSet>
 | 
			
		||||
                        <excludes>
 | 
			
		||||
                            <exclude>com.fasterxml.jackson.core:*</exclude>
 | 
			
		||||
                            <exclude>joda-time:joda-time</exclude>
 | 
			
		||||
                        </excludes>
 | 
			
		||||
                    </artifactSet>
 | 
			
		||||
                </configuration>
 | 
			
		||||
                <executions>
 | 
			
		||||
                    <execution>
 | 
			
		||||
@ -322,6 +342,7 @@
 | 
			
		||||
                    <plugin>
 | 
			
		||||
                        <groupId>com.github.eirslett</groupId>
 | 
			
		||||
                        <artifactId>frontend-maven-plugin</artifactId>
 | 
			
		||||
                        <version>1.15.0</version>
 | 
			
		||||
 | 
			
		||||
                        <executions>
 | 
			
		||||
                            <execution>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user