dead8309 / tailwind-kt Goto Github PK
View Code? Open in Web Editor NEWA plugin which configures tailwindcss to be used in a KotlinJs project
Home Page: https://dead8309.github.io/tailwindkt-writerside-documentation
License: MIT License
A plugin which configures tailwindcss to be used in a KotlinJs project
Home Page: https://dead8309.github.io/tailwindkt-writerside-documentation
License: MIT License
Currently the Tailwind Gradle plugin requires Java 18, and my project requirements requires me to use Java 17 for building and targeting
Implement gradle plugin on a project using a Java 17 JDK
> 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')
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.
The build crashes.
The build works.
I'm not sure what the exact cause is. Here are a few candidates:
kotlin("multiplatform")
pluginWhen upgrading to 1.9.20 the setupTailwindProject
doesn't work anymore.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.