-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (38 loc) · 1.3 KB
/
build.gradle
File metadata and controls
48 lines (38 loc) · 1.3 KB
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
// Gradle script to build the Acorus project
plugins {
id 'base' // to add a "clean" task to the root project
}
ext {
jmeTarget = '' // distinguish non-JME libraries built for specific JME releases
acorusSnapshot = '-SNAPSHOT' // for development builds
//acorusSnapshot = '' // for release builds
acorusVersion = '2.0.3' + jmeTarget + acorusSnapshot
}
subprojects {
apply from: rootProject.file('common.gradle')
}
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' // to disable caching of snapshots
}
tasks.register('AppChooser') {
dependsOn ':AcorusExamples:AppChooser'
description = 'Runs the example apps.'
}
tasks.register('checkstyle') {
dependsOn ':AcorusExamples:checkstyleMain', ':AcorusLibrary:checkstyleMain'
description = 'Checks the style of all Java sourcecode.'
}
// Register cleanup tasks:
clean.dependsOn('cleanNodeModules')
tasks.register('cleanNodeModules', Delete) {
delete 'node_modules'
}
// Register publishing tasks:
tasks.register('install') {
dependsOn ':AcorusLibrary:install'
description = 'Installs the Maven artifacts to the local repository.'
}
tasks.register('release') {
dependsOn ':AcorusLibrary:release'
description = 'Stages the Maven artifacts to the Central Publisher Portal.'
}