Giter Club home page Giter Club logo

tailwind-kt's Introduction

tailwind-kt's People

Contributors

avwie avatar dead8309 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hansvd avwie

tailwind-kt's Issues

Tailwind-kt gradle plugin cannot run on Java 17 and lower

๐Ÿ› Describe the bug

Currently the Tailwind Gradle plugin requires Java 18, and my project requirements requires me to use Java 17 for building and targeting

โš ๏ธ Current behavior

  1. Implement gradle plugin
  2. Gradle throws error about gradle plugin compiled using Java 18 bytecode

โœ… Expected behavior

  1. Implement gradle plugin
  2. Gradle uses gradle plugin

๐Ÿ’ฃ Steps to reproduce

Implement gradle plugin on a project using a Java 17 JDK

๐Ÿ“ฑ Tech info

  • Device: PC
  • OS: Windows
  • Library/App version: 0.0.2
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve io.github.dead8309:tailwind-kt:0.0.2.
     Required by:
         project : > io.github.dead8309.tailwind-kt:io.github.dead8309.tailwind-kt.gradle.plugin:0.0.2
      > No matching variant of io.github.dead8309:tailwind-kt:0.0.2 was found. The consumer was configured to find a library for use during runtime, compatible with Java 17, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.1.1' but:
          - Variant 'apiElements' capability io.github.dead8309:tailwind-kt:0.0.2 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component for use during compile-time, compatible with Java 18 and the consumer needed a component for use during runtime, compatible with Java 17
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.1.1')
          - Variant 'javadocElements' capability io.github.dead8309:tailwind-kt:0.0.2 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 17)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.1.1')
          - Variant 'runtimeElements' capability io.github.dead8309:tailwind-kt:0.0.2 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component, compatible with Java 18 and the consumer needed a component, compatible with Java 17
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.1.1')
          - Variant 'sourcesElements' capability io.github.dead8309:tailwind-kt:0.0.2 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 17)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.1.1')

Invocation of Task.project at execution time is unsupported

๐Ÿ› Describe the bug

When importing the plugin, the build fails with

FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache problems found in this build.
3 problems were found storing the configuration cache, 2 of which seem unique.
- Task `:demo:copyConfigFiles` of type `kizzy.tailwind.task.CopyConfigsTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.3/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:demo:generateDefaultFiles` of type `kizzy.tailwind.task.GenerateDefaultConfigTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.3/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
See the complete report at file:///home/ivan/Projects/opensavvy/ui/compose-material3-tailwind/build/reports/configuration-cache/rkwvvje27jtjdffvymr46l1n/3yy8fnxckvmcx3xjnxq9vpfm6/configuration-cache-report.html
> Invocation of 'Task.project' by task ':demo:generateDefaultFiles' at execution time is unsupported.
> Invocation of 'Task.project' by task ':demo:copyConfigFiles' at execution time is unsupported.

โš ๏ธ Current behavior

The build crashes.

โœ… Expected behavior

The build works.

๐Ÿ’ฃ Steps to reproduce

I'm not sure what the exact cause is. Here are a few candidates:

  • I have the configuration cache enabled
  • I'm using the kotlin("multiplatform") plugin

๐Ÿ“ฑ Tech info

  • Device: Desktop
  • Library/App version: 0.0.3

Doesn't work with Kotlin 1.9.20

๐Ÿ› Describe the bug

When upgrading to 1.9.20 the setupTailwindProject doesn't work anymore.

โš ๏ธ Current behavior

Gradle crashes with:

java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsBrowserDsl.commonWebpackConfig(kotlin.jvm.functions.Function1)'
	at kizzy.tailwind.utils.SetupTailwindProjectKt$setupTailwindProject$1$1.invoke(SetupTailwindProject.kt:10)
	at kizzy.tailwind.utils.SetupTailwindProjectKt$setupTailwindProject$1$1.invoke(SetupTailwindProject.kt:9)

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.