-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
108 lines (91 loc) · 3.2 KB
/
build.gradle.kts
File metadata and controls
108 lines (91 loc) · 3.2 KB
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
import org.jetbrains.changelog.Changelog.OutputType.HTML
fun properties(key: String) = providers.gradleProperty(key)
plugins {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.intellij") version "1.13.3"
id("com.github.ben-manes.versions") version "0.46.0"
id("org.jetbrains.changelog") version "2.0.0"
}
group = "org.openasr"
version = "1.0.1-SNAPSHOT"
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version = "2023.1" // The version of the IntelliJ Platform IDE that will be used to build the plugin
pluginName = "idiolect-azure"
updateSinceUntilBuild = false
plugins = listOf("org.openasr.idiolect:1.4.8")
// plugins = listOf("org.openasr.idiolect:1.4.9-SNAPSHOT@beta")
}
tasks {
val jvmTarget = "17"
compileKotlin { kotlinOptions.jvmTarget = jvmTarget }
withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
changelog {
groups = listOf("Added", "Changed", "Removed", "Fixed")
}
patchPluginXml {
version = "${project.version}"
sinceBuild = "222"
// untilBuild = "223.*")
changeNotes = provider {
changelog.renderItem(changelog.getAll().values.first(), HTML)
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = jvmTarget
}
buildPlugin {
dependsOn("test")
archiveFileName.set("idiolect-azure.zip")
}
runIde {
dependsOn("test")
findProperty("luginDev")?.let { args = listOf(projectDir.absolutePath) }
}
if (System.getenv("GITHUB_REF_NAME") != null
&& !System.getenv("INTELLIJ_CERTIFICATE_CHAIN").isNullOrEmpty()
) {
signPlugin {
certificateChain.set(System.getenv("INTELLIJ_CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("INTELLIJ_PRIVATE_KEY"))
password.set(System.getenv("INTELLIJ_PRIVATE_KEY_PASSWORD"))
inputArchiveFile.set(File("./build/distributions/idiolect-azure.zip"))
outputArchiveFile.set(File("./build/distributions/idiolect-azure-signed.zip"))
}
publishPlugin {
distributionFile.set(File("./build/distributions/idiolect-azure-signed.zip"))
if (System.getenv("GITHUB_REF_NAME") != "master") {
// Users can configure a new custom plugin repository: https://plugins.jetbrains.com/plugins/eap/list
// https://www.jetbrains.com/help/idea/managing-plugins.html#repos
// alpha/beta/eap/canary
channels.set(listOf(System.getenv("INTELLIJ_CHANNEL")))
// ...could also add updatePlugins.xml to github site
// https://plugins.jetbrains.com/docs/intellij/custom-plugin-repository.html#describing-your-plugins-in-updatepluginsxml-file
}
token.set(System.getenv("INTELLIJ_PUBLISH_TOKEN"))
}
}
}
repositories {
mavenLocal()
mavenCentral()
maven("https://plugins.jetbrains.com/maven")
maven("https://azureai.azureedge.net/maven")
}
dependencies {
// implementation("org.openasr:idiolect-lib:1.0.0")
implementation(
group = "com.microsoft.cognitiveservices.speech",
name = "client-sdk",
version = "1.24.2",
ext = "jar"
)
}