forked from TypeFox/publishing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
61 lines (55 loc) · 2.15 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
/*
* Publishing script for open-source projects
* Copyright 2016 TypeFox GmbH
*/
apply plugin: 'io.typefox.osspub'
apply from: 'artifacts.gradle'
if (!hasProperty('JENKINS_URL')) {
ext.JENKINS_URL = 'https://ci.eclipse.org/xtext'
}
def mavenSource = findProperty('mavenSource')
if (mavenSource == null || mavenSource == 'jenkins') {
def jenkinsRepo = { jobName ->
"$JENKINS_URL/job/${jobName}/lastStableBuild/artifact/build/maven-repository/"
}
def jenkinsPipelineRepo = { jobName ->
"$JENKINS_URL/job/${jobName}/job/${osspub.branch}/lastStableBuild/artifact/build/maven-repository/"
}
repositories {
maven { url jenkinsPipelineRepo('lsp4j') }
maven { url jenkinsPipelineRepo('xtext-lib') }
maven { url jenkinsPipelineRepo('xtext-core') }
maven { url jenkinsPipelineRepo('xtext-extras') }
maven { url jenkinsPipelineRepo('xtext-web') }
maven { url jenkinsPipelineRepo('xtext-maven') }
maven { url jenkinsPipelineRepo('xtext-xtend') }
maven { url jenkinsPipelineRepo('xtext-jflex') }
maven { url "$JENKINS_URL/job/yang-lsp/job/${osspub.branch}/lastStableBuild/artifact/yang-lsp/build/maven-repository/" }
maven { url "https://jenkins.eclipse.org/sprotty/job/sprotty-server/job/${osspub.branch}/lastStableBuild/artifact/build/maven-repository/" }
}
} else {
throw new GradleException("Invalid mavenSource: $mavenSource")
}
repositories.mavenCentral()
osspub {
mavenUploadRepository 'ossrh' // this is just a placeholder
p2Repository {
name 'Xtext'
group 'modeling.tmf.xtext'
url "$JENKINS_URL/job/xtext-umbrella/job/${osspub.branch}/lastStableBuild/artifact/build/org.eclipse.xtext.sdk.p2-repository-${osspub.version}.zip"
namespace 'org.eclipse.xtext'
namespace 'org.eclipse.xtend'
namespace 'org.eclipse.lsp4j'
referenceFeature 'org.eclipse.xtext.sdk'
acceptDifferingJars 'org.eclipse.xtend.core'
acceptDifferingJars 'org.eclipse.xtend.ide.common'
}
p2Repository {
name 'Lsp4j'
group 'technology.lsp4j'
url "$JENKINS_URL/job/lsp4j/job/${osspub.branch}/lastStableBuild/artifact/build/lsp4j.p2-repository-${osspub.version}.zip"
deployPath 'lsp4j'
namespace 'org.eclipse.lsp4j'
referenceFeature 'org.eclipse.lsp4j.sdk'
}
}