forked from marklogic/ml-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (88 loc) · 2.19 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
93
94
95
96
97
98
99
100
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.5"
classpath "com.smokejumperit.gradle.license:Gradle-License-Report:0.0.2"
}
}
plugins {
id "groovy"
id "maven-publish"
id "eclipse"
id "idea"
id "com.jfrog.bintray" version "1.6"
id "com.github.jk1.dependency-license-report" version "0.3.11"
id "com.gradle.plugin-publish" version "0.9.7"
}
apply plugin: "com.gradle.plugin-publish"
// gradle dependencyLicenseReport to generate your report in build/reports/dependency-license
apply plugin:'license-report'
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
repositories {
mavenLocal() // Used for local development only
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile mlAppDeployerDependency
compile mlcpUtilDependency
compile group: 'commons-io', name: 'commons-io', version: '2.5'
}
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.9.0"
}
}
mavenCoordinates {
version = "2.9.0"
}
}