forked from marklogic/ml-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (81 loc) · 1.8 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
89
90
91
92
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.5"
}
}
plugins {
id "groovy"
id "maven-publish"
id "eclipse"
id "idea"
id "com.jfrog.bintray" version "1.6"
}
apply plugin: "com.gradle.plugin-publish"
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
repositories {
jcenter()
mavenLocal() // Used for local development only
}
dependencies {
compile gradleApi()
compile localGroovy()
compile mlAppDeployerDependency
compile mlcpUtilDependency
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allJava
from sourceSets.main.allGroovy
}
publishing {
publications {
mainJava(MavenPublication) {
from components.java
}
sourcesJava(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
if (project.hasProperty("myBintrayUser")) {
bintray {
user = myBintrayUser
key = myBintrayKey
publications = ['mainJava', 'sourcesJava']
pkg {
repo = 'maven'
name = project.name
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git'
version {
name = project.version
released = new Date()
}
}
}
}
pluginBundle {
website = 'http://www.gradle.org/'
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git'
description = 'Publishes ml-gradle'
tags = ['marklogic']
plugins {
mlgradlePlugin {
id = 'com.marklogic.ml-gradle'
displayName = 'ml-gradle for MarkLogic'
description = 'Gradle plugin for configuring and deploying applications to MarkLogic'
tags = ['marklogic']
version = "2.4.0"
}
}
mavenCoordinates {
version = "2.4.0"
}
}