Closed blindpirate closed 7 years ago
Why is this closed? It seems only 0.4.4 is available. Gradle plugin repository claims 0.4.5-beta-1 is available, but it's not.
Let me use this space to say a big thank for this plugin!
0.4.5-beta-1 is on the plugin portal. We're using it at Gradle. What makes you think it's not?
Because in your README.md
you write:
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.5"
}
}
apply plugin: "me.champeau.gradle.jmh"
It's 0.4.5
not 0.4.5-beta-1
That's confusing....
Got it but @tinca mentions that 0.4.5-beta-1 is not available.
Using either 0.4.5 or 0.4.5-beta-1 in gradle script does not work, 0.4.4 does.
Can you explain what "does not work" mean?
When changing for example to 0.4.5, reimporting project in Idea fails with: Error:(3, 0) Plugin [id: 'me.champeau.gradle.jmh', version: '0.4.5'] was not found in any of the following sources:
Using 0.4.5-beta-1 (which is claimed by gradle plugin repo as available) fails with: Error:(3, 0) Unable to load class 'org.gradle.api.provider.Property'. Possible causes for this unexpected error include:
I am using gradle wrapper with 4.2.
That's the problem. Look at the readme: you need to use Gradle 4.3-rc-2 to use 0.4.5.
see https://scans.gradle.com/s/nna7rosxkjci4/plugins
this works fine with:
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.5-beta-2"
}
}
apply plugin: "me.champeau.gradle.jmh"
repositories {
jcenter()
}
OK, so 0.4.5-beta-2 is the the latest and works with gradle 4.3 RC. Sorry for being unwary. I have seen that table, but for some reason remembered only 4.2. I am quite new to jmh and looking at too much info lately... Thanks!
Cool, thanks for letting me know!
Steps to reproduce:
jmh.gradle
togradle dependencies -s
The stacktrace is following: