Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Sonarqube-8.9 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: false
install: true

jdk:
- oraclejdk7
- openjdk11

script:
- mvn verify -B -e -V
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ Download

Use Update Center or download the plugin into the directory `$SONAR_HOME/extensions/plugins/` then restart the server.

### SNAPSHOT
+ [http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/l10n/sonar-l10n-ja-plugin/]
(http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/l10n/sonar-l10n-ja-plugin/)
129 changes: 83 additions & 46 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?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">
<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.codehaus.sonar-plugins</groupId>
<groupId>org.sonarsource.parent</groupId>
<artifactId>parent</artifactId>
<version>16</version>
<version>59.0.29</version>
</parent>

<groupId>org.codehaus.sonar-plugins.l10n</groupId>
<groupId>org.sonarqube.l10n.ja</groupId>
<artifactId>sonar-l10n-ja-plugin</artifactId>
<version>1.4-SNAPSHOT</version>
<version>8.9-SNAPSHOT</version>
<packaging>sonar-plugin</packaging>

<name>L10n :: Japanese Pack</name>
Expand All @@ -19,7 +21,7 @@
<inceptionYear>2012</inceptionYear>
<organization>
<name>Motley Reservoir</name>
<url>http://www.motr.jp/</url>
<url>http://www.motr.jp/</url>
</organization>

<licenses>
Expand All @@ -44,47 +46,48 @@

<properties>
<sonar.pluginClass>org.sonar.plugins.l10n.JapanesePackPlugin</sonar.pluginClass>
<sonar.version>3.5</sonar.version>
<sonar-core-plugin.version>3.5</sonar-core-plugin.version>
<sonar-findbugs-plugin.version>3.3.2</sonar-findbugs-plugin.version>
<sonar-l10n-en-plugin.version>3.5</sonar-l10n-en-plugin.version>
<sonar-squid-java-plugin.version>1.2</sonar-squid-java-plugin.version>
<sonar.version>8.9.2.46101</sonar.version>
<junit.version>4.13.2</junit.version>
<sonar-findbugs-plugin.version>3.2</sonar-findbugs-plugin.version>
<sonar-squid-java-plugin.version>2.3</sonar-squid-java-plugin.version>
<license.owner>Yoshiyuki NISHINAKA</license.owner>
<license.mailto>yoshiyuki.nishinaka@gmail.com</license.mailto>
</properties>

<dependencies>
<dependency>
<groupId>org.codehaus.sonar</groupId>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api</artifactId>
<version>${sonar.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.codehaus.sonar</groupId>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-testing-harness</artifactId>
<version>${sonar.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.codehaus.sonar.plugins</groupId>
<artifactId>sonar-core-plugin</artifactId>
<version>${sonar-core-plugin.version}</version>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-core</artifactId>
<version>${sonar.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.codehaus.sonar.plugins</groupId>
<artifactId>sonar-findbugs-plugin</artifactId>
<version>${sonar-findbugs-plugin.version}</version>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.codehaus.sonar.plugins</groupId>
<artifactId>sonar-l10n-en-plugin</artifactId>
<version>${sonar-l10n-en-plugin.version}</version>
<groupId>org.codehaus.sonar-plugins.java</groupId>
<artifactId>sonar-findbugs-plugin</artifactId>
<version>${sonar-findbugs-plugin.version}</version>
<type>sonar-plugin</type>
<scope>test</scope>
</dependency>

Expand All @@ -104,30 +107,64 @@
</developers>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-packaging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<basePlugin>l10nen</basePlugin>
<pluginName>Japanese Pack</pluginName>
<skipDependenciesPackaging>true</skipDependenciesPackaging>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>native2ascii</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
<artifactId>sonar-packaging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<basePlugin>l10nen</basePlugin>
<pluginName>Japanese Pack</pluginName>
<skipDependenciesPackaging>true</skipDependenciesPackaging>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>native2ascii</goal>
</goals>
</execution>
</executions>
</plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
com.github.genthaler
</groupId>
<artifactId>
beanshell-maven-plugin
</artifactId>
<versionRange>
[1.4,)
</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
26 changes: 15 additions & 11 deletions src/main/java/org/sonar/plugins/l10n/JapanesePackPlugin.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* L10n :: Japanese Pack
* Copyright (C) 2012 Yoshiyuki NISHINAKA
* Copyright (C) 2012-2021 Yoshiyuki NISHINAKA
* yoshiyuki.nishinaka@gmail.com
*
* This program is free software; you can redistribute it and/or
Expand All @@ -13,22 +13,26 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.plugins.l10n;

import java.util.Collections;
import java.util.List;

import org.sonar.api.Extension;
import org.sonar.api.SonarPlugin;
import org.sonar.api.Plugin;

public final class JapanesePackPlugin extends SonarPlugin {
public final class JapanesePackPlugin implements Plugin {

public List<Class<? extends Extension>> getExtensions() {
return Collections.emptyList();
}
@Override
public void define(Context context) {
context.addExtensions(Collections.emptyList());
}

@Override
public String toString() {
return this.getClass().getSimpleName();
}

}