mirror of
https://github.com/chylex/IntelliJ-Rainbow-Brackets.git
synced 2025-05-11 21:34:03 +02:00
123 lines
3.6 KiB
Groovy
123 lines
3.6 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
gradlePluginPortal()
|
|
maven { url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
|
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
classpath "de.undercouch:gradle-download-task:4.0.2"
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "org.jetbrains.intellij" version "0.4.21"
|
|
id "com.adarshr.test-logger" version "2.0.0"
|
|
id "de.undercouch.download" version "4.0.2"
|
|
id "org.jetbrains.kotlin.jvm" version "1.3.71"
|
|
id "idea"
|
|
}
|
|
|
|
apply from: "$rootDir/verifier.gradle"
|
|
|
|
testlogger {
|
|
theme 'mocha'
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven { url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
|
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
|
|
maven { url "https://repo.eclipse.org/content/groups/releases/" }
|
|
maven { url "https://www.jetbrains.com/intellij-repository/releases" }
|
|
maven { url "https://www.jetbrains.com/intellij-repository/snapshots" }
|
|
}
|
|
|
|
def pluginsDependencies = ['java',
|
|
'java-i18n',
|
|
'JavaScriptLanguage',
|
|
'DatabaseTools',
|
|
'CSS',
|
|
'platform-images',
|
|
'Groovy',
|
|
'properties',
|
|
'yaml',
|
|
"org.jetbrains.kotlin:$kotlinVersion-release-IJ2020.1-5",
|
|
'org.intellij.scala:2020.2.17',
|
|
'Dart:202.6397.47',
|
|
'org.jetbrains.plugins.ruby:202.6397.59',
|
|
'com.jetbrains.php:202.6397.94',
|
|
'com.jetbrains.sh:202.6397.21'
|
|
|
|
]
|
|
|
|
intellij {
|
|
pluginName name
|
|
|
|
version ideaVersion
|
|
//localPath = '/Users/izhangzhihao/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.6668.121/IntelliJ IDEA 2020.1 EAP.app/Contents'
|
|
//localPath = '/Users/izhangzhihao/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/201.6668.126/CLion.app/Contents'
|
|
updateSinceUntilBuild = false
|
|
|
|
setPlugins(*pluginsDependencies)
|
|
}
|
|
|
|
runIde {
|
|
systemProperty "idea.auto.reload.plugins", false
|
|
}
|
|
|
|
publishPlugin {
|
|
def authenticationToken = "$System.env.token"
|
|
token authenticationToken
|
|
channels publishChannels
|
|
}
|
|
|
|
idea {
|
|
project {
|
|
jdkName = javaVersion
|
|
languageLevel = javaVersion
|
|
}
|
|
}
|
|
|
|
|
|
def gistFile = { url, name ->
|
|
File file = new File("libs/${name}.jar")
|
|
file.parentFile.mkdirs()
|
|
if (!file.exists()) {
|
|
new URL(url).withInputStream { downloadStream ->
|
|
file.withOutputStream { fileOut ->
|
|
fileOut << downloadStream
|
|
}
|
|
}
|
|
}
|
|
files(file.absolutePath)
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.eclipse.mylyn.github:org.eclipse.egit.github.core:5.5.0.201909110433-r") {
|
|
exclude module: "gson"
|
|
}
|
|
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
|
|
testImplementation("io.kotlintest:kotlintest:2.0.7")
|
|
}
|
|
|
|
sourceCompatibility = javaVersion
|
|
targetCompatibility = javaVersion
|
|
|
|
[compileKotlin, compileTestKotlin]*.kotlinOptions {
|
|
languageVersion = kotlinLanguageVersion
|
|
apiVersion = kotlinTargetVersion
|
|
jvmTarget = javaVersion
|
|
freeCompilerArgs = ["-Xskip-runtime-version-check", "-Xjsr305=strict"]
|
|
}
|
|
|
|
pluginVerifier {
|
|
pluginFileName = "$rootProject.name-$version"
|
|
ides = ["IC-201.6668.121"]
|
|
verifierVersion = "1.244"
|
|
}
|
|
|
|
check.dependsOn pluginVerifier
|