-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbuild.gradle
101 lines (84 loc) · 2.66 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
plugins {
id "com.gradle.plugin-publish" version "0.9.5"
}
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile ("org.spockframework:spock-core:1.0-groovy-2.4"){
exclude module: 'groovy-all'
}
}
group = 'com.wiredforcode'
archivesBaseName = 'gradle-spawn-plugin'
version = '0.8.0'
apply plugin: 'idea'
apply plugin: 'groovy'
apply plugin: 'distribution'
apply plugin: 'maven-publish'
distributions {
main {
baseName = archivesBaseName
contents {
from { libsDir }
}
}
}
ext {
bintrayBaseUrl = 'https://api.bintray.com/maven'
bintrayUsername = 'vermeulen-mp'
bintrayRepository = 'gradle-plugins'
bintrayPackage = 'gradle-spawn-plugin'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'source'
}
publishing {
publications {
plugin(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
pom.withXml {
def root = asNode()
root.appendNode('name', 'Gradle Spawn plugin')
root.appendNode('description', 'Gradle plugin for spawning and killing command line processes.')
root.appendNode('inceptionYear', '2014')
def license = root.appendNode('licenses').appendNode('license')
license.appendNode('name', 'The Apache Software License, Version 2.0')
license.appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt')
license.appendNode('distribution', 'repo')
def developer = root.appendNode('developers').appendNode('developer')
developer.appendNode('id', 'vermeulen.mp')
developer.appendNode('name', 'Marco Vermeulen')
developer.appendNode('email', '[email protected]')
}
}
}
repositories {
maven {
name 'Bintray'
url "$bintrayBaseUrl/$bintrayUsername/$bintrayRepository/$bintrayPackage"
credentials {
username = System.getenv('BINTRAY_USERNAME') ?: 'invalid_user'
password = System.getenv('BINTRAY_API_KEY') ?: 'invalid_key'
}
}
}
}
pluginBundle {
website = 'http://wiredforcode.com'
vcsUrl = 'https://github.com/marc0der/gradle'
description = 'This plugin is used for starting and stopping UNIX command line processes from within your build.'
tags = ['spawn', 'unix', 'process']
plugins {
spawnPlugin {
id = 'com.wiredforcode.spawn'
displayName = 'Gradle Spawn Plugin'
}
}
}