-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
37 lines (30 loc) · 1010 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
// Gradle script to build the JmePower project
ext {
jmeTarget = '' // distinguish non-JME libraries built for specific JME releases
jmePowerVersion = '1.1.2-SNAPSHOT'
}
subprojects {
apply from: rootProject.file('common.gradle')
}
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' // to disable caching of snapshots
}
tasks.register('checkstyle') {
dependsOn ':JmePowerAssets:checkstyleMain', \
':JmePowerExamples:checkstyleMain', \
':JmePowerLibrary:checkstyleMain'
description 'Checks the style of all Java sourcecode.'
}
tasks.register('run') {
dependsOn ':JmePowerExamples:run'
description 'Runs the examples.'
}
// Register publishing tasks:
tasks.register('install') {
dependsOn ':JmePowerLibrary:install'
description 'Installs Maven artifacts to the local repository.'
}
tasks.register('release') {
dependsOn ':JmePowerLibrary:release'
description 'Stages Maven artifacts to Sonatype OSSRH.'
}