-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
155 lines (128 loc) · 3.76 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import com.axelor.gradle.support.ChangelogSupport
buildscript {
ext.repos = {
mavenCentral() {
content { excludeGroupByRegex "com\\.axelor.*" }
}
maven {
url 'https://plugins.gradle.org/m2/'
content { excludeGroupByRegex "com\\.axelor.*" }
}
maven { url 'https://repository.axelor.com/nexus/repository/maven-public/' }
}
ext.aopVersion = '7.2.1'
repositories repos
buildscript.repositories repos
dependencies {
classpath "com.axelor:axelor-gradle:${aopVersion}"
classpath "com.adarshr:gradle-test-logger-plugin:2.+"
}
}
repositories repos
buildscript.repositories repos
apply plugin: "com.axelor.app"
apply plugin: 'com.adarshr.test-logger'
apply plugin: ChangelogSupport
apply from: "version.gradle"
apply from: "gradle/react.gradle"
try {
tasks.named("spotlessCheck")
} catch (UnknownTaskException ignored) {
apply from: './gradle/style.gradle'
}
testlogger {
theme 'mocha'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
group = "com.axelor.addons"
description "Axelor Studio Module"
axelor {
title "Axelor Studio"
description "Axelor Studio Module"
}
test {
exclude "com/axelor/apps/baml/test/**"
}
dependencies {
if (findProject(":modules:axelor-message") != null) {
api project(":modules:axelor-message")
} else {
implementation "com.axelor.addons:axelor-message:3.2.2"
}
if (findProject(":modules:axelor-utils") != null) {
api project(":modules:axelor-utils")
} else {
implementation "com.axelor.addons:axelor-utils:3.2.2"
}
implementation "org.camunda.bpm:camunda-engine:7.17.0"
implementation "org.camunda.bpm:camunda-engine-plugin-spin:7.17.0"
implementation "org.camunda.spin:camunda-spin-dataformat-json-jackson:1.17.0"
implementation "org.codehaus.groovy:groovy-all:3.0.19"
implementation "org.eclipse.birt.runtime.3_7_1:Tidy:1"
implementation "org.apache.commons:commons-exec:1.3"
implementation "org.apache.commons:commons-text:1.11.0"
implementation 'org.jboss.resteasy:resteasy-jaxb-provider:6.2.5.Final'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.15.3'
implementation 'org.json:json:20231013'
implementation "ch.qos.logback:logback-core:1.4.11"
implementation "ch.qos.logback:logback-classic:1.4.11"
implementation "org.yaml:snakeyaml:1.28"
implementation 'javax.websocket:javax.websocket-api:1.1'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
}
changelog {
version = baseVersion
output.set(file("CHANGELOG.md"))
inputPath.set(file("changelogs/unreleased"))
types.set(["Feature", "Change", "Deprecate", "Remove", "Fix", "Security"])
header.set("${version.get()} (${new Date().format("yyyy-MM-dd")})")
}
//
// Publish
//
apply plugin: 'maven-publish'
ext {
mavenUsername = project.findProperty("addonsMavenUsername")
mavenPassword = project.findProperty("addonsMavenPassword")
}
publishing {
repositories {
maven {
def repoPath = project.hasProperty("finalRelease")
? "maven-releases"
: "maven-snapshots"
name = "maven"
url = "https://repository.axelor.com/nexus/repository/" + repoPath
credentials {
username = project.mavenUsername
password = project.mavenPassword
}
}
}
}
/*
* Jacoco
*/
apply plugin: 'jacoco'
jacoco {
toolVersion = '0.8.11'
}
jacocoTestReport {
reports {
xml.enabled true
}
}
test {
useJUnitPlatform()
// report is always generated after tests run
finalizedBy jacocoTestReport
maxHeapSize = '1G'
}
jacocoTestReport {
// tests are required to run before generating the report
dependsOn test
}