-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
51 lines (44 loc) · 1022 Bytes
/
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
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
ext {
libDir = 'translations'
}
configurations {
exported
}
dependencies {
}
sourceSets {
main {
resources {
srcDirs "translations", "resources"
}
}
}
def pluginDistDir = new File(rootProject.pluginsDir, project.name)
task copyPlugin(dependsOn: assemble) {
doLast {
println ">>> Installing $project.name into $pluginDistDir"
copy {
into(pluginDistDir)
from(fileTree(".")) {
include "plugin.xml"
include "translations/**"
}
rename { filename -> filename == "i18n_sr_SP.properties" ? "i18n_sr.properties" : filename }
}
copy {
into(pluginDistDir)
from(fileTree("src/main/")) {
include "resources/calendars/**"
}
}
println "<<< $project.name"
}
}