class o.j.i.MemoizedProvider overrides final method o.g.a.i.p.AbstractMinimalProvider.toString()Ljava/lang/String
Answered
My setting is:
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.13.3'
}
group 'indi.bookmarkx'
version '2.2.0'
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/spring/' }
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
// https://mvnrepository.com/artifact/org.mockito/mockito-all
testImplementation 'org.mockito:mockito-all:1.10.19'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = '2021.2.2'
}
patchPluginXml {
sinceBuild = '210.0'
untilBuild = "242.*"
changeNotes = "1. 添加行首标签显示"
}
tasks.named('initializeIntelliJPlugin') {
enabled = false
}
// 禁止过期方法的校验
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << '-Xlint:-deprecation'
}
test {
useJUnitPlatform()
}
runIde {
// jvmArgs = ['-Duser.language=en', '-Duser.country=US']
// 国际化测试
jvmArgs = ['-Duser.language=ja', '-Duser.country=JP']
}
and I got the ERROR following:
Run gradle :buildPlugin
gradle :buildPlugin
shell: /usr/bin/bash -e {0}
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.13-11/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.13-11/x64
GRADLE_BUILD_ACTION_SETUP_COMPLETED: true
GRADLE_BUILD_ACTION_CACHE_RESTORED: true
Welcome to Gradle 8.12!
Here are the highlights of this release:
- Enhanced error and warning reporting with the Problems API
- File-system watching support on Alpine Linux
- Build and test Swift 6 libraries and apps
For more details see https://docs.gradle.org/8.12/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
class org.jetbrains.intellij.MemoizedProvider overrides final method org.gradle.api.internal.provider.AbstractMinimalProvider.toString()Ljava/lang/String;
* 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 24s
Error: Process completed with exit code 1.
Please sign in to leave a comment.
Hi,
1.13.3 is an old Gradle IntelliJ Platform plugin. It is probably incompatible with Gradle 8.12.
It is recommended to migrate to 2.x:
https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html