-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
81 lines (69 loc) · 2.18 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
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import java.io.ByteArrayOutputStream
plugins {
id("org.jetbrains.intellij.platform") version "2.2.0"
id("groovy")
}
dependencies {
sourceSets.named("test") {
testImplementation("org.codehaus.groovy:groovy-all:2.4.14")
testImplementation("org.opentest4j:opentest4j:1.3.0")
}
intellijPlatform {
plugin("com.jetbrains.php:243.21565.193")
plugin("com.jetbrains.twig:243.21565.202")
bundledPlugin("org.jetbrains.plugins.yaml")
bundledPlugin("com.intellij.css")
bundledPlugin("JavaScript")
create("IU","2024.3")
}
}
buildscript {
project.apply {
from("$rootDir/config/extra-settings.gradle.kts")
}
}
group = "com.oroplatform"
version = "1.1.2"
val pathToIde = project.extra["pathToIde"]
val javaVersionOutput = ByteArrayOutputStream()
exec {
commandLine = listOf("java", "-version")
standardOutput = javaVersionOutput
errorOutput = javaVersionOutput
}
val javaVersionString = javaVersionOutput.toString().lines().first()
val javaVersion = Regex("""\d+""").find(javaVersionString)?.value?.toInt() ?: 11
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(javaVersion))
}
}
intellijPlatform {
pluginConfiguration {
name = "idea-oroplatform-plugin"
}
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
val runPhpStorm by intellijPlatformTesting.runIde.registering {
type = IntelliJPlatformType.PhpStorm
version = "2024.3"
}
tasks {
test {
// OPP-80: The tests that target PHP code completion and JS completion
// or those that use the information no longer present in classes.php in the newer version of the platform
// are obsolete, as they assume that classes.php will store
// data required for indexing, hence they should be removed from tests
// Alek Mosingiewicz
setExcludes(listOf(
"*com/oroplatform/idea/oroplatform/intellij/codeAssist/javascript*",
"*com/oroplatform/idea/oroplatform/intellij/codeAssist/yml/v1/AclPhpReferenceTest*",
))
}
}