Git Product home page Git Product logo

Comments (5)

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024

It's related to https://youtrack.jetbrains.com/issue/KT-10328

from ktor.

semoro avatar semoro commented on April 28, 2024

Found that ktor-core has compile time dependency on pom of kotlinx
image

Also bug reproduces with gradle file without kotlin plugin

version '0.1-SNAPSHOT'

buildscript {
    repositories {
        mavenCentral()
    }
}

apply plugin: 'java'

sourceCompatibility = 1.8

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

dependencies {
    compile 'org.jetbrains.ktor:ktor-core:0.2.2'
    compile 'org.jetbrains.ktor:ktor-netty:0.2.2'
}

task fatJar(type: Jar) {
    manifest {
        attributes "Main-Class": "MainClass"
    }
    baseName = project.name
    from {
        configurations.compile.collect {
            it.isDirectory() ? it : zipTree(it)
        }
    }
    with jar
} 

from ktor.

semoro avatar semoro commented on April 28, 2024

Are it not related to?
https://github.com/Kotlin/ktor/blob/master/pom.xml#L100

<dependency>
  <groupId>org.jetbrains.kotlinx</groupId>
  <artifactId>kotlinx-support-jdk8</artifactId>
  <version>0.3</version>
  <type>pom</type>
</dependency>

from ktor.

cy6erGn0m avatar cy6erGn0m commented on April 28, 2024

hm, it may cause gradle to do such strange things, yes. Most likely a gradle bug as maven works well with that. But we definitely don't need type to be specified explicitly here

from ktor.

orangy avatar orangy commented on April 28, 2024

@cy6erGn0m @semoro is it closed now?

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.