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

Issue 06: Initial drop of pravega connector #7

Merged
Merged
16 changes: 16 additions & 0 deletions .github/workflows/pravega-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Java CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*.iml
*.ipr
*.iws
.gradle
build/
/var
/*/var/
/presto-product-tests/**/var/
test-output/
test-reports/
out/
/atlassian-ide-plugin.xml
.idea
.DS_Store
.classpath
.settings
.project
temp-testng-customsuite.xml
test-output
.externalToolBuilders
*~
benchmark_outputs
*.pyc
*.class
.checkstyle
.editorconfig
node_modules

28 changes: 15 additions & 13 deletions HEADER
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
Copyright (c) Pravega Authors.

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.
/*
* Copyright (c) Pravega Authors.
*
* 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.
*/
102 changes: 102 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/*
* Build gradle file for the Pravega connector
*/

plugins {
id 'java'
id 'distribution'
id 'checkstyle'
}

apply from: "$rootDir/gradle/checkstyle.gradle"

repositories {
mavenLocal()
maven {
url = uri('https://oss.jfrog.org/jfrog-dependencies')
}

maven {
url = uri('https://jitpack.io')
}

maven {
url = uri('https://repo.maven.apache.org/maven2')
}
}

dependencies {
compile 'com.facebook.airlift:bootstrap:0.191'
compile 'com.facebook.airlift:json:0.191'
compile 'com.facebook.airlift:log:0.191'
compile 'com.facebook.airlift:configuration:0.191'
compile 'com.google.guava:guava:26.0-jre'
compile 'com.google.inject:guice:4.2.0'
compile 'javax.validation:validation-api:1.1.0.Final'
compile 'javax.inject:javax.inject:1'
compile 'com.fasterxml.jackson.core:jackson-databind:2.10.0'
compile 'io.pravega:pravega-client:0.9.0-2705.09f82eb-SNAPSHOT'
compile 'io.pravega:pravega-common:0.9.0-2705.09f82eb-SNAPSHOT'
compile 'io.pravega:pravega-shared-protocol:0.9.0-2705.09f82eb-SNAPSHOT'
compile 'com.google.protobuf:protobuf-java:3.11.4'
compile 'com.github.everit-org.json-schema:org.everit.json.schema:1.12.1'
compile 'org.apache.avro:avro:1.8.1'
compile 'org.apache.commons:commons-lang3:3.7'
compile 'io.pravega:schemaregistry-contract:0.2.0-50.f1b6734-SNAPSHOT'
compile 'io.pravega:schemaregistry-common:0.2.0-50.f1b6734-SNAPSHOT'
compile 'io.pravega:schemaregistry-client:0.2.0-50.f1b6734-SNAPSHOT'
compile 'io.pravega:schemaregistry-serializers:0.2.0-50.f1b6734-SNAPSHOT'
compile 'io.pravega:schemaregistry-serializers-shared:0.2.0-50.f1b6734-SNAPSHOT'
compile 'io.pravega:schemaregistry-serializers-json:0.2.0-50.f1b6734-SNAPSHOT'

compile 'com.facebook.presto:presto-main:0.247'
compile 'com.facebook.presto:presto-record-decoder:0.247'
compile 'com.facebook.presto:presto-spi:0.247'
compile 'com.facebook.presto:presto-common:0.247'

runtimeOnly 'io.airlift:joda-to-java-time-bridge:3'
runtimeOnly 'com.facebook.airlift:log-manager:0.191'
runtimeOnly 'org.apache.zookeeper:zookeeper:3.5.7'
runtimeOnly 'com.101tec:zkclient:0.10'

testImplementation 'com.facebook.presto:presto-tests:0.247'
testImplementation 'org.testng:testng:7.3.0'
testImplementation 'com.facebook.airlift:testing:0.191'

compileOnly 'io.airlift:slice:0.38'
compileOnly 'io.airlift:units:1.3'
compileOnly 'com.fasterxml.jackson.core:jackson-annotations:2.10.0'
compileOnly 'org.openjdk.jol:jol-core:0.2'
}

group = 'com.facebook.presto'
version = '0.1.0'
description = 'Pravega SQL :: Pravega PrestoDB Connector'
sourceCompatibility = '1.8'

task getHomeDir {
doLast {
println gradle.gradleHomeDir
}
}

plugins.withType(DistributionPlugin) {
distTar {
compression = Compression.GZIP
extension = 'tar.gz'
}
}

distributions {
main {
contents {
distributionBaseName = 'pravega'
from jar
from(project.configurations.runtime)
}
}
}

test {
useTestNG()
}
Loading