[ https://issues.apache.org/jira/browse/KAFKA-8127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796660#comment-16796660 ]
JieFang.He commented on KAFKA-8127: ----------------------------------- I get the same result both in windows7 and Ubuntu with command: gradlew releaseTarGz. kafka version: 1.1.0 gradle version: 4.5.1 scala version: 2.11.12 java version: jdk8 > It may need to import scala.io > ------------------------------ > > Key: KAFKA-8127 > URL: https://issues.apache.org/jira/browse/KAFKA-8127 > Project: Kafka > Issue Type: Improvement > Reporter: JieFang.He > Priority: Major > > I get an error when compile kafka,which disappear when import scala.io > > {code:java} > D:\gerrit\Kafka\core\src\main\scala\kafka\tools\StateChangeLogMerger.scala:140: > object Source is not a member of package io > val lineIterators = files.map(io.Source.fromFile(_).getLines) > ^ > 6 warnings found > one error found > :core:compileScala FAILED > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':core:compileScala'. > > Compilation failed > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)