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

Remove plugins #25124

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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ jobs:
!:trino-redis,
!:trino-redshift,
!:trino-resource-group-managers,
!:trino-server-core,
!:trino-server,
!:trino-singlestore,
!:trino-snowflake,
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions core/trino-server-core/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Trino is a distributed SQL query engine

Trino supports data lakes and other data sources with a focus on high
performance for analytics workloads. Numerous client applications and other
integrations are available.

Find more information on the Trino website at https://trino.io/
86 changes: 86 additions & 0 deletions core/trino-server-core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.trino</groupId>
<artifactId>trino-root</artifactId>
<version>472-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>trino-server-core</artifactId>
<packaging>provisio</packaging>
<description>Trino - Server core package</description>

<properties>
<air.check.skip-enforcer>false</air.check.skip-enforcer>
<air.check.skip-duplicate-finder>true</air.check.skip-duplicate-finder>
<air.check.skip-findbugs>true</air.check.skip-findbugs>
<air.check.skip-dependency>true</air.check.skip-dependency>

<!-- Launcher properties -->
<main-class>io.trino.server.TrinoServer</main-class>
<process-name>${project.artifactId}</process-name>

<!-- Special consideration for Takari Lifecycle -->
<!-- This works as trino-server have no sources (is just provisio packaged) -->
<takari.skip>false</takari.skip>
</properties>

<dependencies>
<dependency>
<groupId>io.airlift</groupId>
<artifactId>junit-extensions</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<!-- Needed for provisio to resolve transitive dependencies for server assembly -->
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
</repository>
</repositories>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules combine.self="override">
<requireFilesSize>
<!-- Maven Central has a 1GB limit -->
<maxsize>1073741824</maxsize>
<files>
<file>${project.build.directory}/${project.artifactId}-${project.version}.tar.gz</file>
</files>
</requireFilesSize>
</rules>
</configuration>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.takari.maven.plugins</groupId>
<artifactId>takari-lifecycle-plugin</artifactId>
<version>${dep.takari.version}</version>
<configuration>
<proc>none</proc>
<skip>${takari.skip}</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
90 changes: 90 additions & 0 deletions core/trino-server-core/src/main/provisio/trino-core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<runtime>
<!-- Target -->
<archive name="${project.artifactId}-${project.version}.tar.gz" hardLinkIncludes="**/*.jar" />

<!-- Notices -->
<fileSet to="/">
<directory path="${basedir}">
<include>NOTICE</include>
<include>README.txt</include>
</directory>
</fileSet>

<!-- Launcher -->
<artifactSet to="bin">
<artifact id="io.airlift:launcher:tar.gz:bin:${dep.launcher.version}">
<unpack />
</artifact>
<artifact id="io.airlift:launcher:tar.gz:properties:${dep.launcher.version}">
<unpack filter="true" />
</artifact>
</artifactSet>

<!-- Server -->
<artifactSet to="lib">
<artifact id="${project.groupId}:trino-server-main:${project.version}" />
</artifactSet>

<!-- Configuration Plugins -->
<artifactSet to="secrets-plugin/keystore-secrets-plugin">
<artifact id="io.airlift:secrets-keystore-plugin:zip:${dep.airlift.version}">
<unpack />
</artifact>
</artifactSet>

<!-- Plugins -->
<artifactSet to="plugin/exchange-filesystem">
<artifact id="${project.groupId}:trino-exchange-filesystem:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/exchange-hdfs">
<artifact id="${project.groupId}:trino-exchange-hdfs:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/functions-python">
<artifact id="${project.groupId}:trino-functions-python:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/geospatial">
<artifact id="${project.groupId}:trino-geospatial:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/ml">
<artifact id="${project.groupId}:trino-ml:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/password-authenticators">
<artifact id="${project.groupId}:trino-password-authenticators:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/resource-group-managers">
<artifact id="${project.groupId}:trino-resource-group-managers:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/session-property-managers">
<artifact id="${project.groupId}:trino-session-property-managers:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/spooling-filesystem">
<artifact id="${project.groupId}:trino-spooling-filesystem:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

</runtime>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trino.server;

import org.junit.jupiter.api.Test;

public class TestDummy
{
@Test
public void buildRequiresTestToExist() {}
}
5 changes: 0 additions & 5 deletions core/trino-server/README.txt

This file was deleted.

8 changes: 8 additions & 0 deletions core/trino-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
</properties>

<dependencies>
<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-server-core</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
</dependency>
<dependency>
<groupId>io.airlift</groupId>
<artifactId>junit-extensions</artifactId>
Expand All @@ -53,6 +59,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<!-- Temporarily skip until archive is reduced in size -->
<skip>true</skip>
<rules combine.self="override">
<requireFilesSize>
<!-- Maven Central has a 1GB limit -->
Expand Down
Loading
Loading