-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·114 lines (98 loc) · 2.85 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
// First, apply the publishing plugin
plugins {
id "com.gradle.plugin-publish" version "0.10.1"
id "java-gradle-plugin"
// Apply other plugins here, e.g. the kotlin plugin for a plugin written in Kotlin
// or the groovy plugin if the plugin uses Groovy
}
repositories {
mavenCentral()
mavenLocal()
}
group = 'com.xmllondon'
version = '1.0.2'
apply plugin: 'groovy'
apply plugin: 'maven'
sourceCompatibility = 1.8
// Use java-gradle-plugin to generate plugin descriptors and specify plugin ids
gradlePlugin {
plugins {
xqrsGradlePlugin {
id = 'com.xmllondon.xqrs-gradle-plugin'
implementationClass = 'com.xmllondon.xqrs.XqrsPlugin'
}
}
}
// The configuration example below shows the minimum required properties
// configured to publish your plugin to the plugin portal
pluginBundle {
website = 'https://github.com/cfoster/xqrs-gradle-plugin/'
vcsUrl = 'https://github.com/cfoster/xqrs-gradle-plugin/'
description = 'XQRS Gradle Plugin - to be used in conjunction with ml-gradle'
tags = ['ml-gradle', 'marklogic', 'xqrs', 'restxq']
plugins {
xqrsGradlePlugin {
// id is captured from java-gradle-plugin configuration
displayName = 'XQRS Gradle Plugin'
}
}
}
apply plugin: 'com.bmuschko.nexus'
archivesBaseName = 'xqrs-gradle-plugin'
dependencies {
compile gradleApi()
testCompile 'junit:junit:4.12'
}
sourceSets {
main {
resources {
exclude '**/test-suite/*'
exclude '**/xqrs/README.md'
}
}
}
modifyPom {
project {
name 'xqrs-gradle-plugin'
description 'XQRS Gradle Plugin - to be used in conjunction with ml-gradle'
url 'https://github.com/cfoster/xqrs-gradle-plugin/'
inceptionYear '2019'
scm {
url 'https://github.com/cfoster/xqrs-gradle-plugin/'
connection 'scm:https://github.com/cfoster/xqrs-gradle-plugin.git'
developerConnection 'scm:git@github.com:cfoster/xqrs-gradle-plugin.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'Foster'
name 'Charles Foster'
email 'charles@xmllondon.com'
}
}
}
}
extraArchive {
sources = true
tests = false
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}