This repository was archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
88 lines (82 loc) · 2.04 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.marklogic:marklogic-unit-test-client:1.0.beta"
}
}
plugins {
id "java"
id "maven-publish"
id "com.jfrog.bintray" version "1.8.0"
id "net.saliman.properties" version "1.4.6"
id "com.marklogic.ml-gradle" version "3.16.0"
}
repositories {
jcenter()
}
dependencies {
mlBundle "com.marklogic:marklogic-unit-test-modules:1.0.beta"
// For running ml-unit-test tests via JUnit
testCompile "com.marklogic:marklogic-unit-test-client:1.0.beta"
testCompile "junit:junit:4.12"
}
bintray {
user = bintray_user
key = bintray_key
publications = ['mainModules', 'sourcesModules']
pkg {
repo = 'Maven'
name = "marklogic-bpmn2-workflow"
userOrg = project.group
licenses = ["Apache-2.0"]
vcsUrl = "https://github.com/marklogic-community/marklogicworkflow.git"
version {
name = project.version
released = new Date()
}
}
publish = true
}
// Defines a configuration for the MarkLogic modules; used by the modulesZip task below
configurations {
modules
sources
}
task modulesJar(type: Jar) {
description = "Jar up the marklogic-bpmn2-workflo MarkLogic modules into a package that can be published"
from("src/main/ml-modules") {
into("marklogic-bpmn2-workflow/ml-modules")
}
from("src/main/ml-config") {
into("marklogic-bpmn2-workflow/ml-config")
}
baseName "marklogic-bpmn2-workflow"
}
task sourcesJar(type: Jar, dependsOn: classes) {
description = "A sources jar is needed for publishing to jcenter; it has the same contents as the modulesJar"
from("src/main/ml-modules")
from("src/main/ml-config")
baseName "marklogic-bpmn2-workflow"
classifier "sources"
}
artifacts {
modules modulesJar
sources sourcesJar
}
publishing {
publications {
mainModules(MavenPublication) {
artifactId "marklogic-bpmn2-workflow"
artifact modulesJar
}
sourcesModules(MavenPublication) {
artifactId "marklogic-bpmn2-workflow"
artifact sourcesJar
}
}
repositories {
mavenCentral()
}
}