-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
69 lines (59 loc) · 1.4 KB
/
build.gradle
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.1.10'
id 'org.jetbrains.intellij.platform' version '2.5.0'
}
buildDir = 'gradle-build'
version = ext.PluginVersion
compileKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
sourceSets {
main {
java.srcDir 'src/rider/main/kotlin'
resources.srcDir 'src/rider/main/resources'
}
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
jetbrainsRuntime()
}
}
dependencies {
intellijPlatform {
rider(ProductVersion, false)
jetbrainsRuntime()
}
}
intellijPlatform {
pluginConfiguration {
name = rootProject.name
}
}
prepareSandbox {
def dotNetFiles = [
"${DotNetOutputDirectory}/${DotNetProjectName}.dll",
"${DotNetOutputDirectory}/${DotNetProjectName}.pdb",
]
dotNetFiles.forEach { f ->
def file = file(f)
from(file) {
into "${rootProject.name}/dotnet"
}
}
doLast {
dotNetFiles.forEach { f ->
if (!file(f).exists()) {
throw new RuntimeException("File $f does not exist")
}
}
}
}
wrapper {
gradleVersion = '8.13'
distributionType = Wrapper.DistributionType.ALL
distributionUrl = "https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}