forked from axelor/axelor-open-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (67 loc) · 2.05 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
buildscript {
apply from: "gradle/repos.gradle"
}
apply plugin: "eclipse"
apply plugin: "idea"
apply from: "version.gradle"
subprojects {
apply from: "${rootDir}/gradle/libs.gradle"
apply from: "${rootDir}/gradle/common.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
apply plugin: com.axelor.gradle.support.JavaSupport
apply plugin: com.axelor.gradle.support.EclipseSupport
apply plugin: com.axelor.gradle.support.LicenseSupport
apply plugin: com.axelor.gradle.support.PublishSupport
group = "com.axelor"
version = rootProject.version
sourceCompatibility = 1.8
targetCompatibility = 1.8
afterEvaluate {
test {
forkEvery 1
maxParallelForks 4
beforeTest { descriptor ->
logger.lifecycle("Running: " + descriptor)
}
}
}
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor': 'Axelor',
'Implementation-Vendor-Id': 'com.axelor',
'Implementation-Vendor-Url': 'http://axelor.com',
'Specification-Title': project.name,
'Specification-Version': project.version,
'Specification-Vendor': 'Axelor')
}
}
}
task updateVersion(type: com.axelor.gradle.tasks.UpdateVersion) {
description "Update version text in source files."
group "Axelor"
processFiles = fileTree(projectDir) {
include '**/resources/**/*.xml'
include '**/resources/domain-models.xsd'
include '**/resources/object-views.xsd'
include '**/resources/data-import.xsd'
include '**/resources/templates/**/*.tmpl'
include '**/data/**/*config.xml'
include '**/webapp/package.json'
}
}
task generateChangeLog(type: com.axelor.gradle.tasks.GenerateChangeLog) {
description "Generate change logs from unreleased entries."
group "Axelor"
files = fileTree(projectDir) {
include 'changelogs/unreleased/*.yml'
include 'changelogs/unreleased/*.yaml'
}
}
wrapper {
gradleVersion = "5.6.4"
}
apply from: "gradle/javadoc.gradle"
apply from: "gradle/style.gradle"