Skip to content

Commit

Permalink
Format code with Spotless (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Jul 14, 2023
1 parent 3a25d54 commit 47f2f19
Show file tree
Hide file tree
Showing 14 changed files with 1,271 additions and 1,249 deletions.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
target

# mvn hpi:run
work

# IntelliJ IDEA project files
*.iml
*.iws
*.ipr
.idea

# Eclipse project files
.settings
.classpath
.project
work
168 changes: 86 additions & 82 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,90 +1,94 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.71</version>
<relativePath />
</parent>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.71</version>
<relativePath />
</parent>

<properties>
<revision>1.13</revision>
<changelist>-SNAPSHOT</changelist>
<jenkins.version>2.361.4</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
</properties>
<artifactId>categorized-view</artifactId>
<version>${revision}${changelist}</version>
<packaging>hpi</packaging>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>

<artifactId>categorized-view</artifactId>
<version>${revision}${changelist}</version>
<packaging>hpi</packaging>
<developers>
<developer>
<id>taksan</id>
<name>Gabriel Takeuchi</name>
</developer>
</developers>

<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>
<scm>
<connection>scm:git:https://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:[email protected]:${gitHubRepo}.git</developerConnection>
<tag>${scmTag}</tag>
<url>https://github.com/${gitHubRepo}</url>
</scm>

<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
<properties>
<revision>1.13</revision>
<changelist>-SNAPSHOT</changelist>
<jenkins.version>2.361.4</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<spotless.check.skip>false</spotless.check.skip>
</properties>

<developers>
<developer>
<id>taksan</id>
<name>Gabriel Takeuchi</name>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:[email protected]:${gitHubRepo}.git</developerConnection>
<url>https://github.com/${gitHubRepo}</url>
<tag>${scmTag}</tag>
</scm>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/localizer</source>
<source>${project.build.directory}/generated-sources/taglib-interface</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate-taglib-interface</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<goals>
<goal>add-source</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/localizer</source>
<source>${project.build.directory}/generated-sources/taglib-interface</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate-taglib-interface</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@

public abstract class CategorizationCriteria implements Describable<CategorizationCriteria>, ExtensionPoint {

/**
* @param item This is the item that will be passed to categorization
* @return returns the group name, or null if the item can't be categorized
*/
public abstract String groupNameGivenItem(TopLevelItem item);
/**
* @param item This is the item that will be passed to categorization
* @return returns the group name, or null if the item can't be categorized
*/
public abstract String groupNameGivenItem(TopLevelItem item);

public static DescriptorExtensionList<CategorizationCriteria, Descriptor<CategorizationCriteria>> all() {
return Jenkins.get().<CategorizationCriteria, Descriptor<CategorizationCriteria>> getDescriptorList(CategorizationCriteria.class);
}
public static DescriptorExtensionList<CategorizationCriteria, Descriptor<CategorizationCriteria>> all() {
return Jenkins.get().getDescriptorList(CategorizationCriteria.class);
}

@Override
public Descriptor<CategorizationCriteria> getDescriptor() {
return Jenkins.get().getDescriptorOrDie(getClass());
}
}
@Override
public Descriptor<CategorizationCriteria> getDescriptor() {
return Jenkins.get().getDescriptorOrDie(getClass());
}
}
Loading

0 comments on commit 47f2f19

Please sign in to comment.