Plugin with id 'org.teavm' not found? (Gradle) #738
-
Hi, I am attempting to add TeaVM into my Gradle project using the following Gradle configuration: buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("org.teavm:teavm-gradle-plugin:0.8.1") {
attributes {
attribute(Attribute.of("org.gradle.docstype", String), "sources")
}
}
}
}
apply plugin: 'org.teavm' However, Gradle fails to recognize the plugin, and errors out with |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Did you try these instructions? Does legacy plugin application works for other plugins? Which Gradle version are you using? Which Java version? Could you provide Gradle output with |
Beta Was this translation helpful? Give feedback.
-
WASM targets are experimental and not recommended to use. Consider JS target instead. Threads in all the targets are emulated via green threads. |
Beta Was this translation helpful? Give feedback.
-
TeaVM requires Java 11+
You better try new plugin DSL.
Never tested TeaVM with this ancient Gradle version. I'd recommend to use at least 7.0 |
Beta Was this translation helpful? Give feedback.
-
The problem with "experimental" status is that I don't have any documentation for Wasm yet, and have no time to write it.
No, there are no such plans. Multithreaded code is extremely hard to develop and test, I simple have not enough resources for it. Another reason: TeaVM historically written for JS, which does not support multiple threads, so the whole Java library was implemented with green threads in mind. To introduce real threads, I have to review the entire library and find parts that need to support threads. Also, these parts can't be simply rewritten, since JS target should keep working, so I need to invent a mechanism that allows to have platform threads and green threads implementations.
It's about generation of C code that can be compiled into native code. For example, jbox2 sample has GTK+ implementation that can be compiled into native binary in Linux. |
Beta Was this translation helpful? Give feedback.
TeaVM requires Java 11+
You better try new plugin DSL.
Never tested TeaVM with this ancient Gradle version. I'd recommend to use at least 7.0