-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
55 lines (46 loc) · 1.33 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.1.0'
id 'org.jetbrains.intellij' version '1.15.0'
}
buildDir = 'gradle-build'
version = ext.PluginVersion
compileKotlin {
kotlinOptions { jvmTarget = "17" }
}
intellij {
type = 'RD'
version = "${ProductVersion}"
downloadSources = false
instrumentCode = false
}
sourceSets {
main {
java.srcDir 'src/rider/main/kotlin'
resources.srcDir 'src/rider/main/resources'
}
}
repositories {
maven { url 'https://cache-redirector.jetbrains.com/intellij-repository/snapshots' }
maven { url 'https://cache-redirector.jetbrains.com/maven-central' }
}
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 ->
def file = file(f)
if (!file.exists()) throw new RuntimeException("File ${file} does not exist")
})
}
}
wrapper {
gradleVersion = '8.2.1'
distributionType = Wrapper.DistributionType.ALL
distributionUrl = "https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}