-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (55 loc) · 1.44 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.zeroturnaround:gradle-jrebel-plugin:1.2.0"
}
}
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.5.2'
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
repositories {
mavenCentral()
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
pluginName = pluginTitle
version = platformVersion
type = platformType
plugins = ["java"]
}
patchPluginXml {
untilBuild = ""
}
sourceSets {
test {
resources {
exclude '*symlink'
}
}
}
if (Boolean.getBoolean("enableJRebel")) {
plugins.apply 'org.zeroturnaround.gradle.jrebel'
// ref: https://manuals.jrebel.com/jrebel/standalone/gradle-advanced.html
rebel {
classpath {
// don't add the default classes target directory [main]
omitDefaultClassesDir = true
resource {
// the real classes target directory is [main-instrumented]
directory = "build/classes/java/main-instrumented"
}
}
}
// ref: https://manuals.jrebel.com/jrebel/standalone/gradle-advanced.html#duplicate-rebel-xml-since-gradle-7-x
processResources.duplicatesStrategy = DuplicatesStrategy.INCLUDE
}