-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
139 lines (126 loc) · 5.88 KB
/
build.gradle.kts
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
plugins {
id("java")
// id("org.jetbrains.kotlin.jvm") version "1.9.0"
id("org.jetbrains.intellij") version "1.15.0"
}
group = "org.exbin.deltahex.intellij"
version = "0.3.0.snapshot"
val ideLocalPath = providers.gradleProperty("ideLocalPath").getOrElse("")
repositories {
mavenCentral()
}
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
type.set("IC") // Target IDE Platform
}
if (ideLocalPath.isEmpty()) {
intellij {
version.set("2023.2.1")
plugins.set(listOf("java"))
}
} else {
intellij {
localPath.set(ideLocalPath)
// Some variants require to add java plugin due to detection bug
plugins.set(listOf("java"))
}
}
sourceSets {
main {
resources {
srcDirs("${rootDir}/src/main/languages")
}
}
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
options.compilerArgs = options.compilerArgs + "-Xlint:unchecked" + "-Xlint:deprecation"
}
// withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
// kotlinOptions.jvmTarget = "17"
// }
patchPluginXml {
sinceBuild.set("232.1")
untilBuild.set("")
}
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"))
}
}
val exbinFrameworkLibraryVersion = "0.3.0-SNAPSHOT"
val binedAppLibraryVersion = "0.2.4-SNAPSHOT"
val binedLibraryVersion = "0.3.0-SNAPSHOT"
val binaryDataLibraryVersion = "0.2.2-SNAPSHOT"
fun exbinFrameworkLibrary(libName: String): String = if (exbinFrameworkLibraryVersion.endsWith("-SNAPSHOTX")) ":${libName}-${exbinFrameworkLibraryVersion}" else "org.exbin.framework:${libName}:${exbinFrameworkLibraryVersion}"
fun binedAppLibrary(libName: String): String = if (binedAppLibraryVersion.endsWith("-SNAPSHOTX")) ":${libName}-${binedAppLibraryVersion}" else "org.exbin.framework:${libName}:${binedAppLibraryVersion}"
fun binedLibrary(libName: String): String = if (binedLibraryVersion.endsWith("-SNAPSHOTX")) ":${libName}-${binedLibraryVersion}" else "org.exbin.bined:${libName}:${binedLibraryVersion}"
fun binaryDataLibrary(libName: String): String = if (binaryDataLibraryVersion.endsWith("-SNAPSHOTX")) ":${libName}-${binaryDataLibraryVersion}" else "org.exbin.auxiliary:${libName}:${binaryDataLibraryVersion}"
repositories {
flatDir {
dirs("lib", "lib/jetbrains")
}
mavenLocal()
}
dependencies {
implementation(exbinFrameworkLibrary("exbin-framework"))
implementation(exbinFrameworkLibrary("exbin-framework-basic"))
implementation(exbinFrameworkLibrary("exbin-framework-frame"))
implementation(exbinFrameworkLibrary("exbin-framework-ui"))
implementation(exbinFrameworkLibrary("exbin-framework-component"))
// implementation(exbinFrameworkLibrary("exbin-framework-data"))
implementation(exbinFrameworkLibrary("exbin-framework-window"))
implementation(exbinFrameworkLibrary("exbin-framework-action"))
implementation(exbinFrameworkLibrary("exbin-framework-file"))
implementation(exbinFrameworkLibrary("exbin-framework-editor"))
implementation(exbinFrameworkLibrary("exbin-framework-about-api"))
implementation(exbinFrameworkLibrary("exbin-framework-about"))
implementation(exbinFrameworkLibrary("exbin-framework-operation"))
implementation(exbinFrameworkLibrary("exbin-framework-operation-undo"))
implementation(exbinFrameworkLibrary("exbin-framework-action-popup"))
implementation(exbinFrameworkLibrary("exbin-framework-help-online"))
implementation(exbinFrameworkLibrary("exbin-framework-options"))
implementation(exbinFrameworkLibrary("exbin-framework-options-api"))
implementation(exbinFrameworkLibrary("exbin-framework-preferences-api"))
implementation(exbinFrameworkLibrary("exbin-framework-preferences"))
implementation(exbinFrameworkLibrary("exbin-framework-language-api"))
implementation(exbinFrameworkLibrary("exbin-framework-language"))
implementation(exbinFrameworkLibrary("exbin-framework-editor-text"))
implementation(binedAppLibrary("exbin-framework-bined"))
implementation(binedAppLibrary("exbin-framework-bined-bookmarks"))
implementation(binedAppLibrary("exbin-framework-bined-compare"))
implementation(binedAppLibrary("exbin-framework-bined-inspector"))
implementation(binedAppLibrary("exbin-framework-bined-macro"))
implementation(binedAppLibrary("exbin-framework-bined-objectdata"))
implementation(binedAppLibrary("exbin-framework-bined-operation"))
implementation(binedAppLibrary("exbin-framework-bined-operation-bouncycastle"))
implementation(binedAppLibrary("exbin-framework-bined-search"))
implementation(binedAppLibrary("exbin-framework-bined-tool-content"))
implementation(binedLibrary("bined-core"))
implementation(binedLibrary("bined-section"))
implementation(binedLibrary("bined-highlight-swing"))
implementation(binedLibrary("bined-operation"))
implementation(binedLibrary("bined-operation-swing"))
implementation(binedLibrary("bined-swing"))
implementation(binedLibrary("bined-swing-section"))
implementation(binaryDataLibrary("binary_data"))
implementation(binaryDataLibrary("binary_data-array"))
implementation(binaryDataLibrary("binary_data-delta"))
implementation(":flatlaf-desktop-3.2")
compileOnly(":debugvalue-clion-2022.2.1")
compileOnly(":debugvalue-goland-2022.2.1")
compileOnly(":debugvalue-intellij-2022.2.1")
compileOnly(":debugvalue-phpstorm-2022.2.1")
compileOnly(":debugvalue-pycharm-2022.2.1")
compileOnly(":debugvalue-rider-2022.2.1")
compileOnly(":database-plugin-2022.2.1")
compileOnly(":jsr305-2.0.1")
}