-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (47 loc) · 1.06 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
plugins {
id 'java'
alias libs.plugins.intellij.plugin
alias libs.plugins.git.version
alias libs.plugins.osdetector
}
group = 'mp.code'
//version = versionDetails().lastTag
java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
implementation variantOf(libs.codemp) {
classifier 'all'
}
compileOnly libs.lombok
annotationProcessor libs.lombok
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')
untilBuild.set('242.*')
}
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' }