-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
127 lines (104 loc) · 2.72 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id("org.jetbrains.intellij") version "1.17.3"
kotlin("jvm") version "1.9.22"
java
}
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
}
group = "ir.mmd.intellijDev"
version = "4.5.0"
sourceSets["main"].java.srcDirs("src/main/gen")
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
intellij {
plugins.add("com.intellij.java")
plugins.add("org.jetbrains.kotlin")
plugins.add("JavaScript")
plugins.add("org.jetbrains.plugins.go:241.17011.2")
// localPath.set("/path/to/intellij-idea-ultimate")
type = "IU"
version = "2024.1"
}
kotlin {
jvmToolchain(17)
}
tasks {
compileKotlin {
compilerOptions {
freeCompilerArgs.add("-Xjvm-default=all")
freeCompilerArgs.add("-Xcontext-receivers")
}
}
val createOpenApiSourceJar by registering(Jar::class) {
from(sourceSets.main.get().java) {
include("**/*.java")
}
from(kotlin.sourceSets.main.get().kotlin) {
include("**/*.kt")
}
destinationDirectory.set(layout.buildDirectory.dir("libs"))
archiveClassifier.set("src")
}
buildPlugin {
dependsOn(createOpenApiSourceJar)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(createOpenApiSourceJar) {
into("lib/src")
}
from("docs/site") {
into("docs")
}
}
runIde {
autoReloadPlugins.set(true)
}
prepareSandbox {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from("docs/site") {
into("${pluginName.get()}/docs")
}
}
buildSearchableOptions {
enabled = environment["SKIP_BSO"] == null
}
patchPluginXml {
version.set(project.version.toString())
sinceBuild.set("231")
untilBuild.set("")
changeNotes.set("""
<h2>Meet the new Feature: Advanced Search! (since v4.5)</h2>
<ul>
<li><b>New Feature</b>: #96 Advanced Search</li>
<li><b>New Feature</b>: advanced search support for java (beta)</li>
<li><b>Bug Fix</b>: fixed advanced search documentation provider</li>
<li><b>Bug Fix</b>: new ui for some settings</li>
<li><b>Compatibility</b>: now there is no limit for until-build</li>
</ul>
<div>
To install nightly builds use <b>Download And Install Nightly Build</b> Action
<br>
To see all new features documentation please check out the <a href='https://mohammadmd1383.github.io/Actionable/Actions%20Documetation/'>Actions Documentation</a> section.
<br>
<b>To see the offline docs right from your ide use the action: Open Offline Help</b>
</div>
""".trimIndent())
}
test {
useJUnitPlatform()
}
publishPlugin {
token.set(System.getenv("ACTIONABLE_PUBLISH_TOKEN"))
}
}