-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
80 lines (64 loc) · 2.33 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
plugins {
id 'eu.xenit.alfresco' version "1.1.0" apply(false) // Have a look at https://plugins.gradle.org/plugin/eu.xenit.alfresco for the latest version
id 'eu.xenit.amp' version "1.1.0" apply(false)
id "eu.xenit.docker-alfresco" version "5.3.1" apply(false) // See https://plugins.gradle.org/plugin/eu.xenit.docker-alfresco for the latest version
id "eu.xenit.docker-compose.auto" version "5.3.1" apply(false) // See https://plugins.gradle.org/plugin/eu.xenit.docker-compose.auto for the latest version
}
group 'eu.xenit.alfresco'
description = "Hotfix for ALF-22094, reduce access logs from Solr for an idle Alfresco"
def baseVersion = "1.1.0"
def branchName = System.env.BRANCH_NAME
def isRelease = branchName != null && branchName.startsWith("release")
if (isRelease)
version = "$baseVersion"
else
version = "$baseVersion-SNAPSHOT"
configure(subprojects.findAll {it.name.contains("hotfix")}) {
apply plugin: 'java'
apply plugin: 'eu.xenit.alfresco'
apply plugin: 'eu.xenit.amp'
apply plugin: "eu.xenit.docker-alfresco"
apply plugin: "eu.xenit.docker-compose.auto"
apply plugin: "signing"
apply plugin: "maven-publish"
description 'amp that creates dummy transactions'
version = rootProject.version
group = rootProject.group
apply from: "${rootProject.projectDir}/publishing.gradle"
apply from: "${rootProject.projectDir}/signing.gradle"
apply from: "${project.projectDir}/overload.gradle"
sourceSets {
main {
java {
srcDirs += ["../core/src/main/java"]
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dockerAlfresco {
baseImage = "${alfrescoImageDep}"
leanImage = true
dockerBuild {
repository = 'alfresco-with-amp'
automaticTags = true
}
}
dockerCompose {
useComposeFiles = ['../docker/docker-compose.yml']
stopContainers = true
waitForTcpPorts = false
}
dependencies {
alfrescoProvided "${alfRepoDep}"
alfrescoProvided "${quartz}"
baseAlfrescoWar "${alfrescoWarDep}"
alfrescoAmp project.tasks.amp.outputs.files
}
repositories {
mavenCentral()
maven {
url 'https://artifacts.alfresco.com/nexus/content/repositories/public/'
}
}
}