-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (56 loc) · 1.63 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
plugins {
id 'java'
}
group 'vn.foo.core.product'
version '1.0'
sourceCompatibility = java_target_version
targetCompatibility = java_target_version
buildDir = build_directory
repositories {
mavenCentral()
if (project.hasProperty('additional_repositories')){
additional_repositories.split(';').each{ repo ->
maven { url repo }
}
}
jcenter()
maven {
url "http://maven.nuiton.org/release/"
}
maven {
url "http://software.rescarta.org/nexus/content/repositories/thirdparty/"
}
maven {
url "http://maven.vaadin.com/vaadin-addons"
}
}
if (!project.hasProperty('max_heap_size')){
project.ext.max_heap_size='1024m'
}
dependencies {
compile "org.opencms:opencms-core:$opencmsVersion"
compile "commons-logging:commons-logging:1.2"
compile "org.immutables:value:2.8.3"
compile "com.fasterxml.jackson.datatype:jackson-datatype-guava:2.11.0.rc1"
compile "org.apache.solr:solr-solrj:8.5.0"
compile 'org.apache.commons:commons-text:1.8'
compile 'commons-io:commons-io:2.6'
compile 'org.apache.commons:commons-email:1.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
sourceSets.main.java.srcDir "./src/main/generated"
sourceSets.main.resources.srcDir "./src/main/resources"
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
}
}
task copyJarToOpenCms {
copy {
from configurations.runtime, "${build_directory}/libs/foo-tool-support-1.0.jar"
into "${serverLibs}"
}
}
jar.dependsOn(copyJarToOpenCms)