Skip to content

Commit

Permalink
Spotless (#73)
Browse files Browse the repository at this point in the history
* add spotless

* apply spotless
  • Loading branch information
kortemik authored Aug 26, 2024
1 parent d9b9608 commit d7eb7b3
Show file tree
Hide file tree
Showing 89 changed files with 3,794 additions and 2,154 deletions.
450 changes: 450 additions & 0 deletions eclipse-java-formatter.xml

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions license-header
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Teragrep Archive Datasource (pth_06)
* Copyright (C) 2021-2024 Suomen Kanuuna Oy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*
* Additional permission under GNU Affero General Public License version 3
* section 7
*
* If you modify this Program, or any covered work, by linking or combining it
* with other code, such other code is not for that reason alone subject to any
* of the requirements of the GNU Affero GPL version 3 as long as this Program
* is the same Program as licensed from Suomen Kanuuna Oy without any additional
* modifications.
*
* Supplemented terms under GNU Affero General Public License version 3
* section 7
*
* Origin of the software must be attributed to Suomen Kanuuna Oy. Any modified
* versions must be marked as "Modified version of" The Program.
*
* Names of the licensors and authors may not be used for publicity purposes.
*
* No rights are granted for use of trade names, trademarks, or service marks
* which are in The Program if any.
*
* Licensee must indemnify licensors and authors for any liability that these
* contractual assumptions impose on licensors and authors.
*
* To the extent this program is licensed as part of the Commercial versions of
* Teragrep, the applicable Commercial License may apply to this file if you as
* a licensee so wish it.
*/
147 changes: 100 additions & 47 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<packaging>jar</packaging>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.teragrep</groupId>
<artifactId>pth_06</artifactId>
<version>${revision}${sha1}${changelist}</version>
<packaging>jar</packaging>
<name>pth_06</name>
<description>Teragrep Datasource for Apache Spark</description>
<url>https://teragrep.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>1.8</java.version>
<revision>0.0.2</revision>
<changelist>-SNAPSHOT</changelist>
<sha1/>
<jclouds.version>2.3.0</jclouds.version>
<teragrep.rlo_06.version>9.0.1</teragrep.rlo_06.version>
<teragrep.rad_01.version>1.0.1</teragrep.rad_01.version>
<teragrep.jue_01.version>0.4.3</teragrep.jue_01.version>
</properties>
<scm>
<connection>scm:git:https://github.com/teragrep/pth_06.git</connection>
<developerConnection>scm:git:[email protected]:teragrep/pth_06.git</developerConnection>
<url>https://github.com/teragrep/pth_06/tree/master</url>
</scm>
<licenses>
<license>
<name>GNU Affero General Public License v3.0</name>
Expand All @@ -42,6 +22,24 @@
<organizationUrl>https://teragrep.com</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/teragrep/pth_06.git</connection>
<developerConnection>scm:git:[email protected]:teragrep/pth_06.git</developerConnection>
<url>https://github.com/teragrep/pth_06/tree/master</url>
</scm>
<properties>
<changelist>-SNAPSHOT</changelist>
<java.version>1.8</java.version>
<jclouds.version>2.3.0</jclouds.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0.0.2</revision>
<sha1></sha1>
<teragrep.jue_01.version>0.4.3</teragrep.jue_01.version>
<teragrep.rad_01.version>1.0.1</teragrep.rad_01.version>
<teragrep.rlo_06.version>9.0.1</teragrep.rlo_06.version>
</properties>
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
Expand Down Expand Up @@ -121,7 +119,8 @@
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bundle</artifactId> <!-- hadoop-aws 3.3.3 contains com.amazonaws:aws-java-sdk-bundle:jar:1.11.1026 -->
<artifactId>aws-java-sdk-bundle</artifactId>
<!-- hadoop-aws 3.3.3 contains com.amazonaws:aws-java-sdk-bundle:jar:1.11.1026 -->
<version>1.11.1026</version>
<scope>provided</scope>
</dependency>
Expand Down Expand Up @@ -243,14 +242,6 @@
<artifactId>apache-rat-plugin</artifactId>
<version>0.15</version>
<inherited>false</inherited>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<addDefaultLicenseMatchers>false</addDefaultLicenseMatchers>
<licenses>
Expand Down Expand Up @@ -284,6 +275,14 @@
<exclude>README.md</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>test</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jooq</groupId>
Expand All @@ -292,10 +291,10 @@
<executions>
<execution>
<id>jooq-codegen</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<jdbc>
<driver>org.mariadb.jdbc.Driver</driver>
Expand All @@ -316,11 +315,65 @@
<routines>true</routines>
</generate>
</generator>
<skip>${jooq.regenerate.skip}</skip> <!-- on schema change set to false to re-render -->
<skip>${jooq.regenerate.skip}</skip>
<!-- on schema change set to false to re-render -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.30.0</version>
<configuration>
<java>
<eclipse>
<file>${project.basedir}/eclipse-java-formatter.xml</file>
<version>4.10.0</version>
</eclipse>
<removeUnusedImports></removeUnusedImports>
<licenseHeader>
<file>${project.basedir}/license-header</file>
</licenseHeader>
</java>
<pom>
<sortPom>
<!-- see https://github.com/diffplug/spotless/blob/main/plugin-maven/README.md#sortpom -->
<encoding>UTF-8</encoding>
<lineSeparator>\n</lineSeparator>
<expandEmptyElements>true</expandEmptyElements>
<keepBlankLines>false</keepBlankLines>
<nrOfIndentSpace>2</nrOfIndentSpace>
<predefinedSortOrder>recommended_2008_06</predefinedSortOrder>
<sortProperties>true</sortProperties>
<sortModules>true</sortModules>
<sortExecutions>true</sortExecutions>
</sortPom>
</pom>
<formats>
<format>
<includes>
<include>.gitattributes</include>
<include>.gitignore</include>
</includes>
<trimTrailingWhitespace></trimTrailingWhitespace>
<endWithNewline></endWithNewline>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
Expand All @@ -331,18 +384,18 @@
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<id>flatten.clean</id>
<goals>
<goal>flatten</goal>
<goal>clean</goal>
</goals>
<phase>clean</phase>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<id>flatten</id>
<goals>
<goal>clean</goal>
<goal>flatten</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -435,6 +488,13 @@
</profile>
<profile>
<id>publish-github-packages</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/teragrep/pth_06</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
Expand All @@ -444,10 +504,10 @@
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<phase>verify</phase>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
Expand All @@ -459,13 +519,6 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/teragrep/pth_06</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>
Loading

0 comments on commit d7eb7b3

Please sign in to comment.