2023-08-28 12:15:05 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2024-09-14 00:51:04 +02:00
|
|
|
id 'org.jetbrains.intellij.platform' version '2.0.1'
|
2024-08-15 23:31:12 +02:00
|
|
|
id 'com.palantir.git-version' version '3.1.0'
|
2023-08-28 12:15:05 +02:00
|
|
|
}
|
|
|
|
|
2024-08-15 23:31:12 +02:00
|
|
|
group = 'mp.code'
|
2024-09-25 18:52:38 +02:00
|
|
|
version = versionDetails().lastTag
|
2023-08-28 12:15:05 +02:00
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2023-11-19 00:47:45 +01:00
|
|
|
maven { url 'https://jitpack.io' }
|
2024-09-14 00:51:04 +02:00
|
|
|
intellijPlatform {
|
|
|
|
defaultRepositories()
|
|
|
|
}
|
2023-11-16 03:02:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-11-17 00:03:26 +01:00
|
|
|
implementation 'org.slf4j:slf4j-api:2.0.9'
|
2024-01-31 22:56:45 +01:00
|
|
|
implementation 'ch.qos.logback:logback-classic:1.4.12'
|
2024-09-25 18:52:38 +02:00
|
|
|
implementation 'mp.code:codemp:0.7.0:linux-x86_64'
|
2024-08-16 02:42:15 +02:00
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.34'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.34'
|
2023-08-28 12:15:05 +02:00
|
|
|
|
2024-09-14 00:51:04 +02:00
|
|
|
intellijPlatform { // TODO: not all of these may be needed, but whatever
|
|
|
|
intellijIdeaCommunity('2023.3')
|
|
|
|
bundledPlugin("com.intellij.java")
|
|
|
|
pluginVerifier()
|
|
|
|
zipSigner()
|
|
|
|
instrumentationTools()
|
|
|
|
}
|
2023-08-28 12:15:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
patchPluginXml {
|
2023-11-19 00:47:45 +01:00
|
|
|
sinceBuild.set('222')
|
2024-08-15 23:31:12 +02:00
|
|
|
untilBuild.set('233.*')
|
2023-08-28 12:15:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
signPlugin {
|
2023-11-19 00:47:45 +01:00
|
|
|
certificateChain.set(System.getenv('CERTIFICATE_CHAIN'))
|
|
|
|
privateKey.set(System.getenv('PRIVATE_KEY'))
|
|
|
|
password.set(System.getenv('PRIVATE_KEY_PASSWORD'))
|
2023-08-28 12:15:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
publishPlugin {
|
2023-11-19 00:47:45 +01:00
|
|
|
token.set(System.getenv('PUBLISH_TOKEN'))
|
2023-08-28 12:15:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-16 03:01:14 +02:00
|
|
|
// useful for debugging
|
|
|
|
runIde.doFirst { environment 'RUST_BACKTRACE', 'full' }
|