1
+ import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
2
+ import org.jetbrains.intellij.platform.gradle.models.ProductRelease
1
3
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
4
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
5
+ import java.io.FileInputStream
6
+ import java.util.Properties
3
7
4
8
plugins {
5
- application
6
9
id(" java" )
7
10
id(" org.jetbrains.kotlin.jvm" ) version " 2.1.0"
8
11
id(" org.jetbrains.intellij.platform" ) version " 2.5.0"
9
12
}
10
13
11
14
group = " io.github.bytebeats"
12
- version = " 2.1 .0"
15
+ version = " 2.2 .0"
13
16
14
17
repositories {
15
18
maven {
@@ -53,10 +56,20 @@ intellijPlatform {
53
56
v2.1.0 upgrade mns with Java 21 and Idea 2025.1.<br>
54
57
""" .trimIndent()
55
58
}
56
- }
57
59
58
- application {
59
- mainClass = " me.bytebeats.mns.ui.MainWindow"
60
+ pluginVerification {
61
+ ides {
62
+ ide(IntelliJPlatformType .IntellijIdeaCommunity , " 2024.3.6" )
63
+ local(file(project.localProperty(" plugin.verifier.ide.location" )))
64
+ recommended()
65
+ select {
66
+ types = listOf (IntelliJPlatformType .IntellijIdeaCommunity , IntelliJPlatformType .AndroidStudio )
67
+ channels = listOf (ProductRelease .Channel .RELEASE )
68
+ sinceBuild = " 242"
69
+ untilBuild = " 251.*"
70
+ }
71
+ }
72
+ }
60
73
}
61
74
62
75
tasks {
@@ -84,9 +97,7 @@ tasks {
84
97
}
85
98
86
99
register<Copy >(" MoveBuildArtifacts" ) {
87
- dependsOn(named(" distZip" ))
88
100
mustRunAfter(" DeletePluginFiles" )
89
- println (" Moving Build Artifacts!" )
90
101
from(layout.buildDirectory.dir(" distributions" ))
91
102
include(" mns-$version .zip" )
92
103
into(" plugins" )
@@ -95,7 +106,13 @@ tasks {
95
106
register<Delete >(" DeletePluginFiles" ) {
96
107
delete(files(" plugins" ))
97
108
}
98
- named(" build " ) {
109
+ named(" signPlugin " ) {
99
110
finalizedBy(" MoveBuildArtifacts" )
100
111
}
112
+ }
113
+
114
+ fun Project.localProperty (key : String , from : String = "local.properties"): String {
115
+ val properties = Properties ()
116
+ properties.load(FileInputStream (rootProject.file(from)))
117
+ return properties.getProperty(key)
101
118
}
0 commit comments