Skip to content

Commit

Permalink
Upgrade Transport to compile Trino UDF with Java 17 (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: Yiqiang Ding <yiqding@linkedin.com>
  • Loading branch information
yiqiangin authored Feb 28, 2023
1 parent cbecc6d commit 851d975
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies {
// TODO: Reference all external dependencies from a single gradle file
implementation('com.google.guava:guava:24.1-jre')
implementation('org.apache.commons:commons-io:1.3.2')
testImplementation('io.airlift:aircompressor:0.21')
}

// As the tasks of trinoDistThinJar and trinoTrinJar are from Transport plugin which is built by Gradle 7.5.1,
Expand Down
2 changes: 1 addition & 1 deletion transportable-udfs-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
implementation project(':transportable-udfs-codegen')
implementation ('com.google.guava:guava:24.1-jre')
implementation ('com.google.code.gson:gson:2.8.5')
implementation ('com.github.jengelman.gradle.plugins:shadow:5.0.0')
implementation ('com.github.jengelman.gradle.plugins:shadow:5.2.0')
testImplementation('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static final String getVersion(final String platform) {
new Platform(TRINO,
Language.JAVA,
TrinoWrapperGenerator.class,
JavaLanguageVersion.of(11),
JavaLanguageVersion.of(17),
ImmutableList.of(
DependencyConfiguration.builder(IMPLEMENTATION, "com.linkedin.transport:transportable-udfs-trino", TRANSPORT_VERSION).build(),
DependencyConfiguration.builder(COMPILE_ONLY, "io.trino:trino-main", TRINO_VERSION).build()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'java'

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(11))
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion transportable-udfs-trino/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'java'

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(11))
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

dependencies {
Expand Down

0 comments on commit 851d975

Please sign in to comment.