This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
65 lines (59 loc) · 1.58 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
version System.env.VERSION
group 'com.mulesoft.als'
apply plugin: "base"
apply plugin: "maven"
apply plugin: "maven-publish"
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
name "mule-ee-releases"
url "https://repository.mulesoft.org/nexus/content/repositories/releases/"
}
}
dependencies {
classpath "com.mulesoft:gradle-tools:0.2.6"
}
}
repositories {
mavenCentral()
maven {
url "https://repository-master.mulesoft.org/nexus/content/repositories/snapshots"
}
maven {
url "https://repository-master.mulesoft.org/nexus/content/repositories/releases"
}
maven { url 'https://jitpack.io' }
}
task assembleArtifact(type: Zip, group: group) {
archiveName 'alsvscode.zip'
destinationDir file("$project.buildDir/distributions")
from '.'
include 'aml-vscode-*.vsix'
description "Assemble archive $archiveName into ${relativePath(destinationDir)}"
}
publishing {
publications {
mavenZip(MavenPublication) {
groupId 'com.mulesoft.als'
artifactId 'alsvscode'
artifact source: assembleArtifact, extension: 'zip'
}
}
repositories {
maven {
credentials {
username System.env.NEXUS_USR
password System.env.NEXUS_PSW
}
url = System.env.NEXUSURL
}
}
}
assemble.dependsOn assembleArtifact
build.dependsOn assemble
publish.dependsOn build