mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
38 lines
1.0 KiB
Groovy
38 lines
1.0 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.intellij' version '0.4.7'
|
|
}
|
|
|
|
project.version '2.0.0'
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
intellij {
|
|
// Define IntelliJ Platform API version to use for building this plugin
|
|
version '2019.1'
|
|
// Define a communal sandbox directory for running code sample plugins within an IDE.
|
|
sandboxDirectory = file("${project.projectDir}/../Build/idea-sandbox")
|
|
}
|
|
|
|
patchPluginXml {
|
|
version = project.version // <version> tag value
|
|
// Fix limited until-build default value.
|
|
sinceBuild = '191' // <idea-version> tag since-build attribute
|
|
untilBuild = '201.*' // <idea-version> tag until-build attribute - until v2020.1
|
|
}
|
|
|
|
// Define javadoc paths, force rebuild before jar is built
|
|
javadoc {
|
|
// Include all class files, e.g. from libraries
|
|
classpath = sourceSets.main.compileClasspath
|
|
}
|
|
jar.dependsOn javadoc
|