Plugin setting Gradle plugin (2. 1.0) has a warning
environment:
JDK:jbr_jcef-21.0.5
IDEA:IntelliJ IDEA 2024.2.3 (Ultimate Edition)
Gradle: gradle-8.7
w11
bulid.gradle
plugins {
id 'org.jetbrains.intellij.platform' version '2.1.0'
}
repositories {
mavenLocal()
maven {
allowInsecureProtocol = true
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
intellijPlatform {
defaultRepositories()
}
}
dependencies {
implementation 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
implementation 'com.google.guava:guava:33.2.0-jre'
// implementation 'org.slf4j:slf4j-api:1.7.30'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'cn.hutool:hutool-all:5.8.27'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.49'
implementation 'org.apache.commons:commons-text:1.12.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'com.vladsch.flexmark:flexmark-all:0.64.8'
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
intellijPlatform {
intellijIdeaCommunity("2024.2.4")
bundledPlugin("com.intellij.java")
pluginVerifier()
zipSigner()
instrumentationTools()
// testFramework(TestFrameworkType.Platform)
}
}
patchPluginXml {
changeNotes = """
Add change notes here.<br>
<em>most HTML tags may be used</em>"""
sinceBuild.set("223")
untilBuild.set("243")
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
请先登录再写评论。
I could not reproduce this error using 2024.3, please double-check your settings in Settings | Build, Execution, Deployment | Build Tools | Gradle
Additional notes:
1. Please consider using Kotlin DSL for Gradle instead of Groovy
2. Gradle 8.7 is outdated, try to always use latest Gradle GA release
Okay, thank you. I just downloaded the latest Gradle and there were no more warnings