-
Notifications
You must be signed in to change notification settings - Fork 414
/
Copy pathbuild.gradle
75 lines (63 loc) · 1.61 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
import com.axelor.gradle.tasks.GenerateAosChangelog
import com.axelor.gradle.tasks.CheckEOLCharsInCsv
plugins {
id 'com.axelor.app'
}
axelor {
title "Axelor ERP"
description "Axelor Entreprise Application"
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.axelor.apps'
ext.aosVersion = '7.0.0-SNAPSHOT'
version = '7.0.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
afterEvaluate {
test {
useJUnitPlatform()
beforeTest { descriptor ->
logger.lifecycle('Running: ' + descriptor)
}
}
}
configurations {
runtimeClasspath.exclude group: "org.eclipse.birt.runtime.3_7_1", module: "org.apache.commons.codec"
}
}
dependencies {
gradle.appModules.each { module ->
implementation "com.axelor.apps:${module}:${aosVersion}"
}
}
apply from: 'gradle/style.gradle'
task("dataImport", type: JavaExec) {
mainClass = "com.axelor.apps.erp.Main"
classpath = sourceSets.main.runtimeClasspath
if (System.getProperty("exec.args") != null) {
args System.getProperty("exec.args").split()
}
}
task generateChangelog(type: GenerateAosChangelog) {
group "Axelor application"
description "Generate change logs from unreleased entries."
files = fileTree(projectDir) {
include '**/changelogs/**/*.yml'
include '**/changelogs/**/*.yaml'
}
}
task checkCsvEOL(type: CheckEOLCharsInCsv) {
group "Axelor application"
description "Generate change logs from unreleased entries."
files = fileTree(projectDir) {
exclude '**/build'
exclude '**/bin'
exclude '**/out'
include '**/*.csv'
}
}