Open i-hyun opened 4 years ago
It looks like this only needs a new release, the changes are already made.
For now I just added the jar locally (like so)
we a Gradle rollback 5.6.2 wait for a new release. Thank you :)
Any estimated time for this release? Thanks in advance,
Release needed!
Any ETA for a release that fixes this issue?
Waiting for new release...
Yes, release needed, please :)
@rnentjes 2.14.2-SNAPSHOT source is where ? make a changed by rnentjes ?
@i-hyun Just check out the repository and build it yourself
@rnentjes oh, checked X) thanks
I solved this issue switching to webpack and calling it in a custom gradle task:
task webpackBuild(type: Exec) {
workingDir 'base/path'
commandLine 'npm', 'run', 'build'
}
(jk) We may find solution to Covid-19 in a year but this project getting released in this timeframe is a far fetched thought.
Anyone that knows a workaround?
@eriwen Have you seen pull request #171?
I got this js and the corresponding css plugin running with gradle 6.6.1
See my comment https://github.com/eriwen/gradle-css-plugin/issues/58#issuecomment-691494403 for instructions.
No modification is needed, just clone, build and use at your gradle script
I forked and built the master branch with minor modifications. Some unit tests fail but minification works for me. I uploaded a compiled jar for convenience. See the top of the readme here: https://github.com/xtianus/gradle-js-plugin
I went down the webpack rabbit hole only to find pain and sorrow. I suggest that, if you want to use a non-java minifier, you try Terser instead https://www.npmjs.com/package/terser which is what webpack uses. Besides, with webpack you may actually end up with a larger file than the original...
I solved this issue switching to webpack and calling it in a custom gradle task:
task webpackBuild(type: Exec) { workingDir 'base/path' commandLine 'npm', 'run', 'build' }
Looks like this issue affects Gradle 7.+ as well (tested on 7.0.2 & 7.1.1)
For those looking for a similar solution which supports Gradle 6+, I migrated to:
Note that building the JAR yourself isn't necessarily required - see https://github.com/jenkinsci/job-dsl-plugin/commit/6b7a8d813c3c3b9f5daf0fcee823c9fd128d8f42 for how I used the JitPack service
today gradle 5.6.2 to 6.0.1 upgrade
but 6.0.1 build fail a plugin
* What went wrong:
An exception occurred applying plugin request [id: 'com.eriwen.gradle.js', version: '2.14.1']
> Failed to apply plugin [id 'com.eriwen.gradle.js']
> Could not create an instance of type com.eriwen.gradle.js.JavaScriptExtension.
> Could not create an instance of type com.eriwen.gradle.js.source.internal.DefaultJavaScriptSourceSetContainer.
> org.gradle.api.internal.AbstractNamedDomainObjectContainer: method <init>(Ljava/lang/Class;Lorg/gradle/internal/reflect/Instantiator;)V not found
* 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.
Thanks in advance.