Skip to content

Instantly share code, notes, and snippets.

@AhmedMourad0
Created May 11, 2021 21:38
Show Gist options
  • Save AhmedMourad0/174dbb3639974efd2b321d64c23ac4b6 to your computer and use it in GitHub Desktop.
Save AhmedMourad0/174dbb3639974efd2b321d64c23ac4b6 to your computer and use it in GitHub Desktop.
Idea plugin build.gradle
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id "org.jetbrains.intellij" version "0.7.3"
id "org.jetbrains.kotlin.jvm"
}
repositories {
mavenCentral()
maven {
url "https://www.jetbrains.com/intellij-repository/snapshots"
}
}
tasks.withType(KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.0"
implementation project(":compiler-plugin")
}
jar {
manifest {
attributes["Specification-Title"] = project.name
attributes["Specification-Version"] = project.version
attributes["Implementation-Title"] = "dev.ahmedmourad.nocopy.nocopy-idea-plugin"
attributes["Implementation-Version"] = project.version
}
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
intellij {
version "2021.1.1"
pluginName = "NoCopy IntelliJ IDEA Plugin"
type "IC"
plugins = ["java", "Kotlin"]
}
patchPluginXml {
sinceBuild "191.0"
untilBuild "211.*"
version "1.4.0"
}
publishPlugin {
token intellijPublishToken
}
patchPluginXml {
version = project.version
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment