Open Skillzore opened 3 years ago
GroupId is org.jsweet, not org.jsweet.v3 Is this obsolete groupId still mentionned somewhere please?
Where do you see "org.jsweet.v3"? I can't see it in my build file. I found the plugin id and such here: https://plugins.gradle.org/plugin/org.jsweet.jsweet-gradle-plugin
Ok I think I know what's going on. Please try gradle plugin 3.0.1, and clean before build
I changed to plugin version 3.0.1 but then got these errors when trying to run ./gradlew clean
:
$ ./gradlew clean
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'poc-j2cl'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find org.jsweet.ext:typescript.java-ts.core:2.0.3.
Searched in the following locations:
- https://plugins.gradle.org/m2/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project : > org.jsweet.jsweet-gradle-plugin:org.jsweet.jsweet-gradle-plugin.gradle.plugin:3.0.1 > gradle.plugin.org.jsweet:jsweet-gradle-plugin:3.0.1 > org.jsweet:jsweet-transpiler:3.0.0
> Could not find org.jsweet.ext:sourcemap-builder:1.0.0.
Searched in the following locations:
- https://plugins.gradle.org/m2/org/jsweet/ext/sourcemap-builder/1.0.0/sourcemap-builder-1.0.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project : > org.jsweet.jsweet-gradle-plugin:org.jsweet.jsweet-gradle-plugin.gradle.plugin:3.0.1 > gradle.plugin.org.jsweet:jsweet-gradle-plugin:3.0.1 > org.jsweet:jsweet-transpiler:3.0.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Does 3.0.1 need some other dependency?
I think you just forgot to add the buildScript part : https://github.com/cincheo/jsweet-examples/blob/master/build.gradle#L14
Oh, so the jsweet gradle plugin only supports the legacy plugin application not Gradle plugin DSL?
Indeed, it has not been tested, so I guess not. I am not aware of what is needed to support it, but PR are more than welcome if you want to give a try :) That would be awesome
Using Gradle 6.5 and the "legacy plugin application", as Gradle calls it,
./gradlew tasks
works just fine. However, when trying to use the plugin DSL, with this build file:I get this result:
Is support for gradle plugin DSL missing for this plugin or am I doing something wrong and need instructions?