You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "liyongguang (Jira)" <ji...@apache.org> on 2021/08/13 07:38:00 UTC

[jira] [Created] (FLINK-23760) Static methods in interface require -target:jvm-1.8

liyongguang created FLINK-23760:
-----------------------------------

             Summary: Static methods in interface require -target:jvm-1.8
                 Key: FLINK-23760
                 URL: https://issues.apache.org/jira/browse/FLINK-23760
             Project: Flink
          Issue Type: Bug
          Components: API / Scala
    Affects Versions: 1.13.2
         Environment: name := "sparkJob"

version := "0.1"

scalaVersion := "2.11.12"

// https://mvnrepository.com/artifact/org.apache.spark/spark-core
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.0"

// https://mvnrepository.com/artifact/org.apache.spark/spark-sql
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.0"

// https://mvnrepository.com/artifact/org.apache.spark/spark-hive
libraryDependencies += "org.apache.spark" %% "spark-hive" % "2.4.0"

// https://mvnrepository.com/artifact/org.apache.flink/flink-table-api-scala-bridge
libraryDependencies += "org.apache.flink" %% "flink-table-api-scala-bridge" % "1.13.2"

// https://mvnrepository.com/artifact/org.apache.flink/flink-connector-hive
libraryDependencies += "org.apache.flink" %% "flink-connector-hive" % "1.13.2"

// https://mvnrepository.com/artifact/org.apache.flink/flink-scala
libraryDependencies += "org.apache.flink" %% "flink-scala" % "1.13.2"

// https://mvnrepository.com/artifact/org.apache.flink/flink-jdbc
libraryDependencies += "org.apache.flink" %% "flink-jdbc" % "1.10.0"

// https://mvnrepository.com/artifact/mysql/mysql-connector-java
libraryDependencies += "mysql" % "mysql-connector-java" % "8.0.25"

// https://mvnrepository.com/artifact/org.apache.thrift/libthrift
libraryDependencies += "org.apache.thrift" % "libthrift" % "0.14.1"
            Reporter: liyongguang


Build project with sbt get error:
{code:java}
Static methods in interface require -target:jvm-1.8
    val tableEnv = TableEnvironment.create(settings)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)