Skip to content

Commit

Permalink
feat: add java8compat module
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Jan 2, 2024
1 parent 33bcf2a commit cb1fb76
Show file tree
Hide file tree
Showing 89 changed files with 3,773 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,13 @@ private static Language createLanguageObjects(URL url, String className) {
static boolean hasPremium(String className) {
return className.matches("org\\.languagetool\\.language\\.(" +
"pt\\.Portuguese|pt\\.AngolaPortuguese|pt\\.BrazilianPortuguese|pt\\.MozambiquePortuguese|pt\\.PortugalPortuguese|" +
"Portuguese|AngolaPortuguese|BrazilianPortuguese|MozambiquePortuguese|PortugalPortuguese|" +
"de\\.German|de\\.GermanyGerman|de\\.AustrianGerman|de\\.SwissGerman|" +
"German|GermanyGerman|AustrianGerman|SwissGerman|" +
"nl\\.Dutch|fr\\.French|es\\.Spanish|" +
"Dutch|French|Spanish|" +
"en\\.English|en\\.AustralianEnglish|en\\.AmericanEnglish|en\\.BritishEnglish|en\\.CanadianEnglish|en\\.NewZealandEnglish|en\\.SouthAfricanEnglish" +
"English|AustralianEnglish|AmericanEnglish|BritishEnglish|CanadianEnglish|NewZealandEnglish|SouthAfricanEnglish" +
")");
}

Expand Down
296 changes: 296 additions & 0 deletions languagetool-language-modules/language-java8compat/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>

<parent>
<groupId>org.languagetool</groupId>
<artifactId>languagetool-parent</artifactId>
<version>${revision}</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>language-java8compat</artifactId>
<url>https://www.languagetool.org</url>
<name>Java8 compatibility module for LanguageTool(no JPMS)</name>

<!--
- This is a compatibility module to provide a backward compatibility with
- LanguageTool 6.2 and before.
- The module shares packages `org.languagetool.language` and `org.languagetool.compat`
- with `languagetool-core` module, so it breaks Java Platform Module System.
- When users use Java 9 and later with JPMS, users should not use this.
-->

<licenses>
<license>
<name>GNU Lesser General Public License</name>
<url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url>
<distribution>repo</distribution>
<comments>The license refers to the source code, resources may be under different licenses</comments>
</license>
</licenses>

<packaging>jar</packaging>

<developers>
<developer>
<name>Hiroshi Miura</name>
<roles>
<role>Maintainer</role>
</roles>
</developer>
</developers>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>languagetool-core</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<!-- see http://stackoverflow.com/questions/174560/sharing-test-code-in-maven#174670 -->
<groupId>org.languagetool</groupId>
<artifactId>languagetool-core</artifactId>
<version>${revision}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- Used for compat tests -->
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ar</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-be</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-br</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ca</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-da</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-de</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-de-DE-x-simple-language</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-el</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-en</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-es</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-eo</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-fa</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-fr</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ga</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-gl</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-is</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-it</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ja</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-km</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-lt</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ml</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-nl</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-pl</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-pt</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ro</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ru</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-sk</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-sl</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-sv</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-ta</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-tl</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-uk</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.languagetool</groupId>
<artifactId>language-zh</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${ch.qos.logback.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>

</dependencies>

</project>
Loading

0 comments on commit cb1fb76

Please sign in to comment.