forked from DrSnowbird/amf
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
61 lines (51 loc) · 1.45 KB
/
build.gradle
File metadata and controls
61 lines (51 loc) · 1.45 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
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"
classpath files('lib/nexus-iq-cli-1.68.0-01.jar')
}
}
apply plugin: 'com.mulesoft.gradle.nexusIq'
def name = 'amf'
nexusIq.user = "${System.env.NEXUSIQ_USR}"
nexusIq.password = "${System.env.NEXUSIQ_PSW}"
nexusIq.applicationId = "${name}"
apply plugin: 'application'
apply plugin: 'distribution'
apply plugin: 'java'
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' }
}
def versions = new Properties()
file("amf-webapi.versions").withInputStream {
stream -> versions.load(stream)
}
dependencies {
compile "com.github.amlorg:amf-client_2.12:${versions.'amf.webapi'}"
compile "com.github.amlorg:amf-webapi_2.12:${versions.'amf.webapi'}"
compile "com.github.amlorg:amf-validation_2.12:${versions.'amf.webapi'}"
}
mainClassName = 'amf.Main'
distributions {
custom {
baseName = "${name}"
}
}
tasks.nexusIq.dependsOn(distZip)