Git Product home page Git Product logo

Comments (12)

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024 4

Hi, you need jcenter included, replace mavenCentral with jcenter

from ktor.

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024 1

@lorefnon very strange: I tried your build script and it works well for me. Also you better to use kotlin 1.0.3 rather than 1.0.0. Tried both Gradle 2.7 and 3.0

Ah I see, you should use 1.0.3 instead of 1.0.0 because of gradle plugin bug.

from ktor.

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024

Btw, we definitely should migrate to 0.3

from ktor.

lorefnon avatar lorefnon commented on April 28, 2024

I was following the example build.gradle in the Jetbrains/kotlin-examples.

After replacing mavenCentral with jcenter, now I get the following error:

$ gradle
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.0.0/kotlin-gradle-plugin-1.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-project/1.0.0/kotlin-project-1.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.0.0/kotlin-stdlib-1.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-android-extensions/1.0.0/kotlin-android-extensions-1.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin-core/1.0.0/kotlin-gradle-plugin-core-1.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.0.0/kotlin-gradle-plugin-api-1.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-runtime/1.0.0/kotlin-runtime-1.0.0.pom
Download https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.0.0/kotlin-compiler-embeddable-1.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.0.0/kotlin-gradle-plugin-1.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.0.0/kotlin-stdlib-1.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-android-extensions/1.0.0/kotlin-android-extensions-1.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin-core/1.0.0/kotlin-gradle-plugin-core-1.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.0.0/kotlin-gradle-plugin-api-1.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-runtime/1.0.0/kotlin-runtime-1.0.0.jar
Download https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.0.0/kotlin-compiler-embeddable-1.0.0.jar
:compileKotlin
Download http://dl.bintray.com/kotlin/ktor/org/jetbrains/ktor/ktor-core/0.2.2/ktor-core-0.2.2.pom
Download http://dl.bintray.com/kotlin/ktor/org/jetbrains/ktor/ktor/0.2.2/ktor-0.2.2.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.0.3/kotlin-reflect-1.0.3.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-project/1.0.3/kotlin-project-1.0.3.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-support-jdk8/0.1-alpha-2/kotlinx-support-jdk8-0.1-alpha-2.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-support/0.1-alpha-2/kotlinx-support-0.1-alpha-2.pom
Download https://jcenter.bintray.com/org/slf4j/slf4j-api/1.6.5/slf4j-api-1.6.5.pom
Download https://jcenter.bintray.com/org/slf4j/slf4j-parent/1.6.5/slf4j-parent-1.6.5.pom
Download https://jcenter.bintray.com/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.pom
Download https://jcenter.bintray.com/ch/qos/logback/logback-parent/1.1.2/logback-parent-1.1.2.pom
Download https://jcenter.bintray.com/com/typesafe/config/1.2.1/config-1.2.1.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-support-jdk7/0.1-alpha-2/kotlinx-support-jdk7-0.1-alpha-2.pom
Download https://jcenter.bintray.com/ch/qos/logback/logback-core/1.1.2/logback-core-1.1.2.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-runtime/1.0.3/kotlin-runtime-1.0.3.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.0.3/kotlin-stdlib-1.0.3.pom
Download https://jcenter.bintray.com/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.pom
Download https://jcenter.bintray.com/org/slf4j/slf4j-parent/1.7.6/slf4j-parent-1.7.6.pom
Download http://dl.bintray.com/kotlin/ktor/org/jetbrains/ktor/ktor-core/0.2.2/ktor-core-0.2.2.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.0.3/kotlin-reflect-1.0.3.jar
Download https://jcenter.bintray.com/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar
Download https://jcenter.bintray.com/com/typesafe/config/1.2.1/config-1.2.1.jar
Download https://jcenter.bintray.com/junit/junit/4.10/junit-4.10.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-support-jdk7/0.1-alpha-2/kotlinx-support-jdk7-0.1-alpha-2.jar
Download https://jcenter.bintray.com/ch/qos/logback/logback-core/1.1.2/logback-core-1.1.2.jar
Download https://jcenter.bintray.com/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-runtime/1.0.3/kotlin-runtime-1.0.3.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.0.3/kotlin-stdlib-1.0.3.jar
Download https://jcenter.bintray.com/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.jar
WARN: java.util.zip.ZipException: error in opening zip file: /Users/lorefnon/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-support-jdk8/0.1-alpha-2/d375819799e0ff9b4c6fccd5b4fc16a90466be9a/kotlinx-support-jdk8-0.1-alpha-2.pom
java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
        at com.intellij.util.io.FileAccessorCache$1.createValue(FileAccessorCache.java:37)
        at com.intellij.util.io.FileAccessorCache$1.createValue(FileAccessorCache.java:30)
        at com.intellij.util.containers.SLRUCache.get(SLRUCache.java:46)
        at com.intellij.util.io.FileAccessorCache.get(FileAccessorCache.java:62)
        at com.intellij.openapi.vfs.impl.ZipHandler.getZipFileHandle(ZipHandler.java:106)
        at com.intellij.openapi.vfs.impl.ZipHandler.createEntriesMap(ZipHandler.java:85)
        at com.intellij.openapi.vfs.impl.ArchiveHandler.getEntriesMap(ArchiveHandler.java:130)
        at com.intellij.openapi.vfs.impl.jar.CoreJarHandler.<init>(CoreJarHandler.java:40)
        at com.intellij.openapi.vfs.impl.jar.CoreJarFileSystem$1.create(CoreJarFileSystem.java:37)
        at com.intellij.openapi.vfs.impl.jar.CoreJarFileSystem$1.create(CoreJarFileSystem.java:33)
        at com.intellij.util.containers.FactoryMap.get(FactoryMap.java:56)
        at com.intellij.openapi.vfs.impl.jar.CoreJarFileSystem.findFileByPath(CoreJarFileSystem.java:50)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.findJarRoot(KotlinCoreEnvironment.kt:228)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.contentRootToVirtualFile(KotlinCoreEnvironment.kt:207)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.fillClasspath(KotlinCoreEnvironment.kt:180)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:129)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:98)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.createForProduction(KotlinCoreEnvironment.kt:281)
        at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createCoreEnvironment(K2JVMCompiler.kt:212)
        at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:182)
        at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:49)
        at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:174)
        at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.callCompiler(Tasks.kt:85)
        at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.compile(Tasks.kt:61)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:589)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:572)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:310)
        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:90)
        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:50)
        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:27)
        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:40)
        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:169)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
        at org.gradle.launcher.Main.doAction(Main.java:33)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:220)
        at java.util.zip.ZipFile.<init>(ZipFile.java:150)
        at java.util.zip.ZipFile.<init>(ZipFile.java:121)
        at com.intellij.openapi.vfs.impl.ZipHandler$1.createAccessor(ZipHandler.java:53)
        at com.intellij.openapi.vfs.impl.ZipHandler$1.createAccessor(ZipHandler.java:45)
        at com.intellij.util.io.FileAccessorCache$1.createValue(FileAccessorCache.java:35)
        ... 85 more
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (3, 1): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (3, 20): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (3, 21): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (3, 25): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (3, 27): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (7, 2): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (7, 3): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (7, 8): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (7, 9): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (7, 14): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (7, 16): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (7, 20): Expecting a top level declaration
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (3, 27): Function declaration must have a name
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (4, 5): Unresolved reference: get
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (5, 9): Unresolved reference: call
e: /Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (5, 26): Unresolved reference: ContentType
:compileKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 56.023 secs

build.gradle :

buildscript {
  ext.kotlin_version = '1.0.0'
  repositories {
    jcenter()
  }
  dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  }
}

apply plugin: 'kotlin'
apply plugin: 'application'

mainClassName = 'blog.MainKt'

defaultTasks 'run'

repositories {
    jcenter()
    maven {
        url  "http://dl.bintray.com/kotlin/ktor"
    }
}

dependencies {
  compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  compile "org.jetbrains.ktor:ktor-core:0.2.2"
  testCompile 'junit:junit:4.11'
  testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}

task wrapper(type: Wrapper) {
  gradleVersion = "2.7"
}

from ktor.

lorefnon avatar lorefnon commented on April 28, 2024

Thanks for taking the time to investigate this.

I tried changing kotlin_version to 1.0.3 and updating gradle. Also I tried clearing gradle cache to no avail. I keep receiving the same error.

I am using the following versions:

$  gradle -version

------------------------------------------------------------
Gradle 3.0
------------------------------------------------------------

Build time:   2016-08-15 13:15:01 UTC
Revision:     ad76ba00f59ecb287bd3c037bd25fc3df13ca558

Groovy:       2.4.7
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_05 (Oracle Corporation 25.5-b02)
OS:           Mac OS X 10.11.5 x86_64

$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

$ kotlinc -version
info: Kotlin Compiler version 1.0.3

It would be helpful if you could point me to the configuration used by the Kotlin/ktor CI. I will try to recreate the same environment in a vagrant box.

from ktor.

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024

I have reproduced it but compiler doesn't fail.

/Users/lorefnon/Workspace/kotlin-blog/src/main/kotlin/blog/main.kt: (3, 1): Expecting a top level declaration

what do you have at this position? could you point me at example project? It looks like kotlin gradle plugin bug as it passes pom instead of jar

from ktor.

lorefnon avatar lorefnon commented on April 28, 2024

The code I am trying to run is available here.

from ktor.

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024

Ah, you have function call on top level. It should be

package blog

import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.host.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.response.*
import org.jetbrains.ktor.routing.*
import org.jetbrains.ktor.netty.*

fun main(vararg args: String) {
    embeddedNettyServer(8080) {
        get("/") {
            call.respondText(ContentType.Text.Html, "Hello, world!")
        }
    }.start(wait = true)
}

You also need ktor-netty included as ktor-core is not enough for netty hosts. It seems that the exception is not a problem: you can simply ignore it. However I am going to file a bug as kotlin gradle plugin should never pass pom file as jar to the compiler

from ktor.

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024

The exception is related to https://youtrack.jetbrains.com/issue/KT-10328

from ktor.

lorefnon avatar lorefnon commented on April 28, 2024

Ah, I see. Thanks a lot for helping out with this.

from ktor.

mcgriffa avatar mcgriffa commented on April 28, 2024

Can anyone explain to me what the difference between "org.jetbrains.kotlin.jvm" and simply "org.jetbrains.kotlin" is. I can find the latter one in many repos, but the first one seems to not exist. Also, when I have the plugin with id "org.jetbrains.kotlin" in my local maven repo, and I call mavenLocal() under repositories, I still get the following error:
capture

Any tips?

from ktor.

 avatar commented on April 28, 2024

The exception is related to https://youtrack.jetbrains.com/issue/KT-10328

Thanks a lot. It saves my time.

from ktor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.