forked from LarsBauer/resharper-structured-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.54 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.5.20'
id 'org.jetbrains.intellij' version '0.7.3' apply false
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildDir = 'gradle-build'
version = ext.PluginVersion
// Workaround this issue https://github.com/JetBrains/gradle-intellij-plugin/issues/630
apply plugin: 'org.jetbrains.intellij'
compileKotlin {
kotlinOptions { jvmTarget = "1.8" }
}
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 "${intellij.pluginName}/dotnet" })
})
doLast {
dotNetFiles.forEach({ f ->
def file = file(f)
if (!file.exists()) throw new RuntimeException("File ${file} does not exist")
})
}
}
wrapper {
gradleVersion = '6.8.3'
distributionType = Wrapper.DistributionType.ALL
distributionUrl = "https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}