Git Product home page Git Product logo

Comments (5)

cy6erGn0m avatar cy6erGn0m commented on May 29, 2024 30

You can add the following to get it working

plugins {
    java
}

from kotlin-frontend-plugin.

foxx1337 avatar foxx1337 commented on May 29, 2024 4

@cy6erGn0m this actually saved me, thank you.

What I do is:

  1. Create new kotlin + gradle kotlin dsl project in Idea 2017.3.1
  2. upgrade gradle-wrapper.properties: put gradle version 4.4-all there
  3. run ./gradlew wrapper (which gave me the error)

Your solution, with adding:

plugins {
    java
}

makes everything work again.

from kotlin-frontend-plugin.

sambsnyd avatar sambsnyd commented on May 29, 2024 3

It is inappropriate to apply the java plugin to a project that isn't actually a java project.

The root problem causing this is that the kotlin-frontend plugin can't be applied via the Gradle plugins dsl, which provides the nice type-safe accessors.

See issue #143 for a description of why this is and how to fix it

from kotlin-frontend-plugin.

BorzdeG avatar BorzdeG commented on May 29, 2024

@cy6erGn0m I expected that the plug-in itself will apply necessary plug-ins or will report that it lacks them. But not the message about the shortages of a configuration

from kotlin-frontend-plugin.

cy6erGn0m avatar cy6erGn0m commented on May 29, 2024

Unfortunately applying java plugin in frontend plugin is too late for kts build script. There is nothing can be done in frontend plugin to avoid this. Btw it is known issue and it is under discussion

from kotlin-frontend-plugin.

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.