maven插件开发(idea)-1
发布时间:2024年01月03日
//plugins {
// id("java")
// id("org.jetbrains.intellij") version "1.7.0"
//}
//
//group = "com.example"
//version = "1.0-SNAPSHOT"
//
//repositories {
// maven("https://maven.aliyun.com/nexus/content/groups/public/")
// mavenCentral()
//}
//
Configure Gradle IntelliJ Plugin
Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
//intellij {
// version.set("2021.3")
// type.set("IC") // Target IDE Platform
//
// plugins.set(listOf(/* Plugin Dependencies */))
//}
//
//tasks {
// // Set the JVM compatibility versions
// withType<JavaCompile> {
// sourceCompatibility = "11"
// targetCompatibility = "11"
// }
//
// patchPluginXml {
// sinceBuild.set("213")
// untilBuild.set("223.*")
// }
//
// signPlugin {
// certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
// privateKey.set(System.getenv("PRIVATE_KEY"))
// password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
// }
//
// publishPlugin {
// token.set(System.getenv("PUBLISH_TOKEN"))
// }
//}
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
plugins {
id("java")
id("org.jetbrains.intellij") version "1.16.1"
id ("jacoco")
}
group = "org.intellij.sdk"
version = "2.0.0"
repositories {
maven("https://maven.aliyun.com/nexus/content/groups/public/")
mavenCentral()
}
dependencies {
// testImplementation("junit:junit:4.13.2")
implementation("org.gitlab4j:gitlab4j-api:5.4.0")
implementation("org.jacoco:org.jacoco.core:0.8.7")
implementation("org.jacoco:org.jacoco.report:0.8.7")
implementation("org.jacoco:org.jacoco.ant:0.8.7")
implementation("junit:junit:4.13.2")
implementation("org.mockito:mockito-core:3.12.4")
implementation("org.hamcrest:hamcrest-library:2.2")
implementation("com.google.auto.service:auto-service:1.0-rc7")
annotationProcessor ("com.google.auto.service:auto-service:1.0-rc7")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
}
// See https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2023.1.5")
plugins.set(listOf("com.intellij.java"))
}
tasks {
buildSearchableOptions {
enabled = false
}
// withType<JavaCompile> {
// sourceCompatibility = "17"
// targetCompatibility = "17"
// }
patchPluginXml {
version.set("${project.version}")
sinceBuild.set("231")
untilBuild.set("233.*")
}
// signPlugin {
// certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
// privateKey.set(System.getenv("PRIVATE_KEY"))
// password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
// }
//
// publishPlugin {
// token.set(System.getenv("PUBLISH_TOKEN"))
// }
}
文章来源:https://blog.csdn.net/u014244856/article/details/135300304
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!