-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (56 loc) · 1.66 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
58
59
60
61
62
63
64
65
66
67
68
69
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'idea'
id 'java'
id 'org.jetbrains.intellij.platform' version '2.0.1'
}
repositories {
maven { url 'https://maven.aliyun.com/repository/central/' }
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
group 'com.anyilanxin.plugin'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-migration.html
intellijPlatform {
pluginConfiguration {
name = "${pluginName}"
version = "${pluginVersion}"
}
projectName = "${pluginName}"
buildSearchableOptions = false
sandboxContainer = file("${rootProject.rootDir}/idea-sandbox")
}
dependencies {
intellijPlatform {
intellijIdeaUltimate("2024.3")
pluginVerifier()
instrumentationTools()
javaCompiler()
bundledPlugin("com.intellij.database")
}
compileOnly 'com.fasterxml.jackson.core:jackson-databind:2.17.1'
def lombok = "1.18.32"
compileOnly "org.projectlombok:lombok:${lombok}"
annotationProcessor "org.projectlombok:lombok:${lombok}"
testAnnotationProcessor "org.projectlombok:lombok:${lombok}"
testImplementation 'junit:junit:4.13.2'
}
processResources {
filteringCharset = 'UTF-8'
include('**/*.*')
filesMatching('plugin.xml') {
filter(ReplaceTokens, tokens: ['version': version, 'pluginName': pluginName])
}
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}