-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (62 loc) · 2.36 KB
/
build.gradle
File metadata and controls
69 lines (62 loc) · 2.36 KB
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
plugins {
// Centralize plugin version management
id 'be.vbgn.ci-detect' version '0.5.0' apply false
id 'eu.xenit.amp' version '1.1.0' apply false
id 'eu.xenit.alfresco' version '1.1.0' apply false
id 'eu.xenit.docker-alfresco' version '5.5.0' apply false
id 'eu.xenit.docker-compose' version '5.5.0' apply false
}
def static getVersionQualifier(String branch_name) {
if (branch_name.startsWith('release'))
return ''
return '-SNAPSHOT'
}
ext {
versionWithoutQualifier = '6.1.3'
mvc = '9.0.0'
jackson_version = '2.15.2'
http_version = '4.5.13' // Used by integration tests
}
// See https://jreleaser.org/guide/latest/reference/deploy/maven/maven-central.html for syntax
jreleaser {
deploy {
maven {
mavenCentral {
release {
// Add an override for each artifact we want to publish, because we want to
// disable requirements checking for each of them.
['interface', '231', '232', '233', '234', '251'].each { suffix ->
artifactOverride {
// Match artifact by artifactId
artifactId = "alfred-api-${suffix}"
verifyPom = false
jar = false
sourceJar = false
javadocJar = false
}
}
}
}
}
}
}
allprojects {
apply plugin: 'java'
group = 'eu.xenit.alfred.api'
version = versionWithoutQualifier + getVersionQualifier(System.env.BRANCH_NAME ?: 'local')
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenCentral()
maven { url "https://artifacts.alfresco.com/nexus/content/groups/public" }
// This private repository provides Xenit with Alfresco enterprise artefacts.
// External developers should replace it with their own library repository.
maven {
url 'https://artifacts.alfresco.com/nexus/content/groups/private'
credentials {
username System.env.ALFRESCO_NEXUS_USERNAME ?: property("org.alfresco.maven.nexus.username")
password System.env.ALFRESCO_NEXUS_PASSWORD ?: property("org.alfresco.maven.nexus.password")
}
}
}
}