-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
39 lines (30 loc) · 1.19 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
// Gradle script to build the jme3-utilities project
import org.gradle.api.artifacts.*
plugins {
id 'base' // to add a "clean" task to the root project
}
ext {
group = 'com.github.stephengold'
websiteUrl = 'https://github.com/stephengold/jme3-utilities'
// current versions of libraries:
jme3utilitiesniftyVersion = '0.9.38-SNAPSHOT'
jme3utilitiesxVersion = '0.3.3-SNAPSHOT'
}
subprojects {
apply from: rootProject.file('common.gradle')
}
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' // to disable caching of snapshots
}
tasks.register('checkstyle') {
dependsOn ':nifty:checkstyleMain', ':tests:checkstyleMain', ':x:checkstyleMain'
description = 'Checks the style of all Java sourcecode.'
}
def mergedJavadocSubprojects = [ ":nifty", ":x" ]
tasks.register('mergedJavadoc', Javadoc) {
description = 'Creates Javadoc from all the projects.'
destinationDir = new File(project.buildDir, 'merged-javadoc')
title = 'All modules'
source = mergedJavadocSubprojects.collect { project(it).sourceSets.main.allJava }
classpath = files(mergedJavadocSubprojects.collect { project(it).sourceSets.main.compileClasspath })
}