forked from xenit-eu/alfred-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (86 loc) · 2.87 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
def bundleClassPath(configuration) {
def list = ['.']
configuration.each {
list += 'lib/' + it.name
}
return list.join(',')
}
def includeResource(configuration) {
def list = []
configuration.each {
list += 'lib/' + it.name + "=" + it.path
}
return list.join(',')
}
def getVersionQualifier(String branch_name) {
if(branch_name.startsWith('release'))
return ''
if(branch_name == 'master')
return '-SNAPSHOT'
return '-' + branch_name + '-SNAPSHOT'
}
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url "http://maven.alfresco.com/nexus/content/groups/public"
}
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url 'https://artifactory.xenit.eu/artifactory/libs-snapshot'
credentials {
username property("eu.xenit.artifactory.username")
password property("eu.xenit.artifactory.password")
}
}
maven {
url 'https://artifactory.xenit.eu/artifactory/libs-release'
credentials {
username property("eu.xenit.artifactory.username")
password property("eu.xenit.artifactory.password")
}
}
}
}
ext {
versionWithoutQualifier = '2.3.0'
jackson_version = '2.6.3'
swagger_version = "1.5.7"
de_version = "2.0.1"
http_core_version = "4.3.3"
http_version = "4.3.3"
alfresco_50_version = "5.0.d"
alfresco_51_version = "5.1.f"
alfresco_52_version = "5.2.f"
alfresco_60_version = "6.0"
alfresco_61_version = "6.1"
// The introduction of hit highlights in search 52 required general versions bump to 5.2.f
// Additionally, an explicit dependency on the data-model was required, however
// alfresco-data-model might have a different version number than the main war it's included in
// ref: https://bitbucket.org/xenit/alfresco-bom/src/master/repo/eu/xenit/alfresco/ for the bom of vanilla alfresco
alfresco_50_dm_version = "5.0.d"
alfresco_51_dm_version = "5.1.f"
alfresco_52_dm_version = "6.16"
alfresco_60_dm_version = "8.9"
alfresco_61_dm_version = "8.25.1"
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group = 'eu.xenit.apix'
version = versionWithoutQualifier + getVersionQualifier(System.env.BRANCH_NAME ?: 'local')
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://artifacts.alfresco.com/nexus/content/groups/public" }
maven { url "http://repo.springsource.org/release" }
maven { url "http://jcenter.bintray.com" }
}
}