-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
66 lines (53 loc) · 1.87 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
66
// Gradle script to build the MonkeyWrench project
plugins {
id 'base' // to add a "clean" task to the root project
alias(libs.plugins.download) // to retrieve files from URLs
}
ext {
wrenchSnapshot = '-SNAPSHOT' // for development builds
//wrenchSnapshot = '' // for release builds
jmeTarget = '' // distinguish non-JME libraries built for specific JME releases
wrenchVersion = '0.6.3' + jmeTarget
}
subprojects {
apply from: rootProject.file('common.gradle')
}
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' // to disable caching of snapshots
}
tasks.register('checkstyle') {
dependsOn ':apps:checkstyleMain', ':lib:checkstyleMain'
description = 'Checks the style of all Java sourcecode.'
}
// Register publishing tasks:
tasks.register('install') {
dependsOn ':lib:install'
description = 'Installs Maven artifacts to the local repository.'
}
tasks.register('release') {
dependsOn ':lib:release'
description = 'Stages Maven artifacts to Sonatype OSSRH.'
}
// Register cleanup tasks:
tasks.register('cleanDownloads', Delete) { // downloaded assets
delete 'downloads'
}
// Register downloading tasks:
tasks.register('bistro', Download) {
src 'https://developer.nvidia.com/bistro'
dest file('downloads/Bistro_v5_2.zip')
overwrite false
}
tasks.register('downloads') {
dependsOn 'testdata-31', 'testdata-36'
}
tasks.register('testdata-31', Download) {
src 'https://repo1.maven.org/maven2/org/jmonkeyengine/jme3-testdata/3.1.0-stable/jme3-testdata-3.1.0-stable.jar'
dest file('downloads/jme3-testdata-3.1.0-stable.jar')
overwrite false
}
tasks.register('testdata-36', Download) {
src 'https://repo1.maven.org/maven2/org/jmonkeyengine/jme3-testdata/3.6.1-stable/jme3-testdata-3.6.1-stable.jar'
dest file('downloads/jme3-testdata-3.6.1-stable.jar')
overwrite false
}