Skip to content

Commit

Permalink
Finish renaming to Trino
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and electrum committed May 17, 2021
1 parent aa1b5bd commit 767b81e
Show file tree
Hide file tree
Showing 22 changed files with 46 additions and 92 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Contributing to Presto
# Contributing to Trino

## Contributor License Agreement ("CLA")

In order to accept your pull request, we need you to [submit a CLA](https://github.com/prestosql/cla).
In order to accept your pull request, we need you to [submit a CLA](https://github.com/trinodb/cla).

## License

By contributing to Presto, you agree that your contributions will be licensed under the [Apache License Version 2.0 (APLv2)](LICENSE).
By contributing to Trino, you agree that your contributions will be licensed under the [Apache License Version 2.0 (APLv2)](LICENSE).
2 changes: 1 addition & 1 deletion src/test/java/io/trino/maven/CheckerIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void testInvalidMissingProvided()
File basedir = resources.getBasedir("invalid-missing");
maven.forProject(basedir)
.execute("verify")
.assertLogText("[ERROR] Trino plugin dependency io.airlift:units must have scope 'provided'.");
.assertLogText("[ERROR] Trino plugin dependency io.airlift:slice must have scope 'provided'.");
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/trino/maven/GeneratorIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@SuppressWarnings({"JUnitTestNG", "PublicField"})
public class GeneratorIntegrationTest
{
private static final String DESCRIPTOR = "META-INF/services/io.prestosql.spi.Plugin";
private static final String DESCRIPTOR = "META-INF/services/io.trino.spi.Plugin";

@Rule
public final TestResources resources = new TestResources();
Expand Down
12 changes: 3 additions & 9 deletions src/test/projects/abstract-plugin-class/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

<dependencies>
<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -27,12 +27,6 @@
<artifactId>trino-maven-plugin</artifactId>
<version>${it-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public abstract class AbstractPlugin
implements Plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class TestPlugin
extends AbstractPlugin
Expand Down
12 changes: 3 additions & 9 deletions src/test/projects/basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

<dependencies>
<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -27,12 +27,6 @@
<artifactId>trino-maven-plugin</artifactId>
<version>${it-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion src/test/projects/basic/src/main/java/its/BasicPlugin.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class BasicPlugin
implements Plugin
Expand Down
10 changes: 3 additions & 7 deletions src/test/projects/excluded-extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
</dependency>

<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -39,10 +39,6 @@
<allowedProvidedDependencies>
<allowedProvidedDependency>com.google.guava:guava</allowedProvidedDependency>
</allowedProvidedDependencies>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class ValidPlugin
implements Plugin
Expand Down
12 changes: 3 additions & 9 deletions src/test/projects/interface-plugin-class/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

<dependencies>
<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -27,12 +27,6 @@
<artifactId>trino-maven-plugin</artifactId>
<version>${it-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public interface MyPlugin
extends Plugin {}
10 changes: 3 additions & 7 deletions src/test/projects/invalid-and-excluded-extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
</dependency>

<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -47,10 +47,6 @@
<allowedProvidedDependencies>
<allowedProvidedDependency>com.google.guava:guava</allowedProvidedDependency>
</allowedProvidedDependencies>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class InvalidPlugin
implements Plugin
Expand Down
14 changes: 4 additions & 10 deletions src/test/projects/invalid-extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<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>io.prestosql.maven.its</groupId>
<groupId>io.trino.maven.its</groupId>
<artifactId>invalid-extra</artifactId>
<version>1.0</version>
<packaging>trino-plugin</packaging>
Expand All @@ -21,9 +21,9 @@
</dependency>

<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -35,12 +35,6 @@
<artifactId>trino-maven-plugin</artifactId>
<version>${it-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class InvalidPlugin
implements Plugin
Expand Down
18 changes: 6 additions & 12 deletions src/test/projects/invalid-missing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
</properties>

<dependencies>
<!-- this dependency will bring in 'units' transitively -->
<!-- this dependency will bring in 'slice' transitively -->
<dependency>
<groupId>io.airlift</groupId>
<artifactId>concurrent</artifactId>
<version>0.178</version>
<artifactId>stats</artifactId>
<version>205</version>
</dependency>

<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>

Expand All @@ -41,12 +41,6 @@
<artifactId>trino-maven-plugin</artifactId>
<version>${it-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class InvalidPlugin
implements Plugin
Expand Down
10 changes: 3 additions & 7 deletions src/test/projects/invalid-skipped/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
</dependency>

<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -37,10 +37,6 @@
<extensions>true</extensions>
<configuration>
<skipCheckSpiDependencies>true</skipCheckSpiDependencies>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class InvalidPlugin
implements Plugin
Expand Down
10 changes: 3 additions & 7 deletions src/test/projects/two-excluded-extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
</dependency>

<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>300</version>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<version>351</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -48,10 +48,6 @@
<allowedProvidedDependency>com.google.guava:guava</allowedProvidedDependency>
<allowedProvidedDependency>org.scala-lang:scala-library</allowedProvidedDependency>
</allowedProvidedDependencies>
<!-- TODO: remove after trino-spi is released -->
<pluginClassName>io.prestosql.spi.Plugin</pluginClassName>
<spiGroupId>io.prestosql</spiGroupId>
<spiArtifactId>presto-spi</spiArtifactId>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package its;

import io.prestosql.spi.Plugin;
import io.trino.spi.Plugin;

public class ValidPlugin
implements Plugin
Expand Down

0 comments on commit 767b81e

Please sign in to comment.