forked from axelor/open-suite-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (64 loc) · 1.71 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
81
buildscript {
ext.repos = {
mavenCentral()
mavenLocal()
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://repository.axelor.com/nexus/public/' }
}
ext.openPlatformVersion = '5.2.3'
ext.appVersion = '5.2.4'
repositories repos
dependencies {
classpath "com.axelor:axelor-gradle:${openPlatformVersion}"
}
}
allprojects { repositories repos }
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: "com.axelor.app"
apply from: './gradle/style.gradle'
allprojects {
configurations {
runtime.exclude group:"org.eclipse.birt.runtime.3_7_1", module:"org.apache.commons.codec"
}
apply plugin: 'idea'
apply plugin: 'eclipse'
group = "com.axelor"
version = "${appVersion}"
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
subprojects {
group = "com.axelor.apps"
}
axelor {
title "Axelor ERP"
description "Axelor Entreprise Application"
}
dependencies {
gradle.appModules.each { dir ->
compile project(":modules:$dir.name")
}
}
task wrapper(type: Wrapper) { gradleVersion = "4.4.1" }
task("dataImport", type: JavaExec) {
main = "com.axelor.apps.erp.Main"
classpath = sourceSets.main.runtimeClasspath
if(System.getProperty("exec.args") != null) {
args System.getProperty("exec.args").split()
}
}
task archiveReports(type: Zip) {
file("modules").traverse(type: groovy.io.FileType.DIRECTORIES, maxDepth: 1) { dir ->
if(new File(dir, "build.gradle").exists() && new File(dir, "/src/main/resources/reports").exists()) {
new File(dir, "/src/main/resources/reports/").listFiles().each { report ->
from report.getPath()
}
}
}
classifier 'reports'
includeEmptyDirs = false
destinationDir = file("$buildDir/libs")
}
build.finalizedBy archiveReports