java-tree-sitter
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>ch.usi.si.seart</groupId>
<artifactId>java-tree-sitter</artifactId>
<version>1.12.0</version>
</dependency><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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>ch.usi.si.seart</groupId>
<artifactId>java-tree-sitter</artifactId>
<version>1.12.0</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Java bindings for tree-sitter</description>
<url>https://github.com/seart-group/java-tree-sitter</url>
<inceptionYear>2022</inceptionYear>
<licenses>
<license>
<name>MIT License</name>
<url>https://raw.githubusercontent.com/seart-group/java-tree-sitter/master/LICENSE</url>
</license>
</licenses>
<organization>
<name>SEART</name>
<url>https://seart.si.usi.ch/</url>
</organization>
<developers>
<developer>
<id>dabico</id>
<name>Ozren Dabić</name>
<url>https://dabico.github.io/</url>
<email>ozren.dabic@usi.ch</email>
<organization>SEART</organization>
<organizationUrl>https://seart.si.usi.ch/</organizationUrl>
</developer>
</developers>
<contributors>
<contributor>
<name>Tommy MacWilliam</name>
<email>tmacwilliam@cs.harvard.edu</email>
<url>https://tommymacwilliam.com/</url>
<organization>Figma</organization>
<organizationUrl>https://www.figma.com/</organizationUrl>
</contributor>
<contributor>
<name>Sam Dixon</name>
<organization>Figma</organization>
<organizationUrl>https://www.figma.com/</organizationUrl>
</contributor>
<contributor>
<name>Lawrence Wang</name>
</contributor>
<contributor>
<name>Symbolk</name>
</contributor>
</contributors>
<scm>
<tag>v1.12.0</tag>
<url>https://github.com/seart-group/java-tree-sitter/tree/master</url>
<connection>scm:git:https://github.com/seart-group/java-tree-sitter.git</connection>
<developerConnection>scm:git:git@github.com:seart-group/java-tree-sitter.git</developerConnection>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/seart-group/java-tree-sitter/issues</url>
</issueManagement>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<properties>
<project.build.generatedSourceDirectory>${project.build.directory}/generated-sources/java</project.build.generatedSourceDirectory>
<project.build.templateSourceDirectory>${project.basedir}/src/main/javaTemplates</project.build.templateSourceDirectory>
<project.build.resourceDirectory>${project.basedir}/src/main/resources</project.build.resourceDirectory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<org.junit.version>5.10.2</org.junit.version>
<org.mockito.version>5.10.0</org.mockito.version>
<org.slf4j.version>2.0.12</org.slf4j.version>
<org.apache.commons.collections.version>4.4</org.apache.commons.collections.version>
<org.apache.commons.lang.version>3.14.0</org.apache.commons.lang.version>
<org.apache.commons.io.version>2.15.1</org.apache.commons.io.version>
<org.projectlombok.lombok.version>1.18.30</org.projectlombok.lombok.version>
<org.jetbrains.annotations.version>24.1.0</org.jetbrains.annotations.version>
<com.puppycrawl.tools.checkstyle.version>10.13.0</com.puppycrawl.tools.checkstyle.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${org.junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-bom</artifactId>
<version>${org.mockito.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-bom</artifactId>
<version>${org.slf4j.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>${org.apache.commons.collections.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${org.apache.commons.lang.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${org.apache.commons.io.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${org.projectlombok.lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${org.jetbrains.annotations.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${project.build.resourceDirectory}</directory>
<excludes>
<exclude>**/.keep</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireOS>
<family>unix</family>
</requireOS>
<requireJavaVersion>
<version>1.${java.version}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.0.0</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<release>${java.version}</release>
<compilerArgs>
<arg>-h</arg>
<arg>${project.basedir}/lib</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.3.1</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${com.puppycrawl.tools.checkstyle.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<includeTestSourceDirectory>false</includeTestSourceDirectory>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>default-generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<outputDirectory>${project.build.generatedSourceDirectory}</outputDirectory>
<resources>
<resource>
<directory>${project.build.templateSourceDirectory}</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>7.0.0</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
<configuration>
<commitIdGenerationMode>full</commitIdGenerationMode>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>
${project.build.outputDirectory}/git.properties
</generateGitPropertiesFilename>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<show>public</show>
<quiet>true</quiet>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<executions>
<execution>
<id>default-prepare</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>PACKAGE</element>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>0.9</minimum>
</limit>
<limit>
<counter>BRANCH</counter>
<value>COVEREDRATIO</value>
<minimum>0.9</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/error/**</exclude>
<exclude>**/exception/**</exclude>
<exclude>**/function/**</exclude>
<exclude>**/version/**</exclude>
<exclude>**/External.class</exclude>
<exclude>**/Node$*.class</exclude>
<exclude>**/TreeCursor$*.class</exclude>
<exclude>**/OffsetTreeCursor$*.class</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<releaseProfiles>release</releaseProfiles>
<preparationProfiles>release</preparationProfiles>
<tagNameFormat>v@{project.version}</tagNameFormat>
<preparationGoals>
resources:copy-resources@default-generate-docs scm:add -Dincludes=README.md
</preparationGoals>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>git-update-submodules</id>
<phase>initialize</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>update.sh</executable>
</configuration>
</execution>
<execution>
<id>generate-api-version-file</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python3</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>generate.py</argument>
<argument>-o</argument>
<argument>
${project.build.generatedSourceDirectory}/ch/usi/si/seart/treesitter/version/TreeSitter.java
</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>generate-language-metadata-file</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python3</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>properties.py</argument>
<argument>-o</argument>
<argument>${project.build.resourceDirectory}/language.properties</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>build-shared-object-library-macos</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python3</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build.py</argument>
<argument>-o</argument>
<argument>${project.build.outputDirectory}/libjava-tree-sitter</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>build-shared-object-library-linux</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<environmentVariables>
<DOCKER_BUILDKIT>1</DOCKER_BUILDKIT>
<BUILDKIT_PROGRESS>plain</BUILDKIT_PROGRESS>
</environmentVariables>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>--quiet</argument>
<argument>--file</argument>
<argument>Dockerfile</argument>
<argument>--output</argument>
<argument>${project.build.outputDirectory}</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.generatedSourceDirectory}</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>default-generate-docs</id>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<outputDirectory>${project.basedir}</outputDirectory>
<resources>
<resource>
<directory>src/main/doc</directory>
<includes>
<include>README.md</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.3</version>
<configuration>
<licenseSets>
<licenseSet>
<header>${project.basedir}/LICENSE</header>
<includes>
<include>src/main/**</include>
</includes>
</licenseSet>
</licenseSets>
</configuration>
<executions>
<execution>
<id>default-license-format</id>
<phase>initialize</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
<execution>
<id>default-license-remove</id>
<phase>package</phase>
<goals>
<goal>remove</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>