codemp-intellij/build.gradle

57 lines
1.2 KiB
Groovy
Raw Normal View History

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'
}
2024-08-15 23:31:12 +02:00
group = 'mp.code'
version = versionDetails().lastTag
java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
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'
implementation 'mp.code:codemp:0.7.0:linux-x86_64'
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
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()
}
}
tasks {
patchPluginXml {
sinceBuild.set('222')
2024-08-15 23:31:12 +02:00
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'))
}
}
// useful for debugging
runIde.doFirst { environment 'RUST_BACKTRACE', 'full' }