-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
144 lines (121 loc) · 3.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6"
classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
}
}
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group 'com.athaydes.pony.gradle'
version '0.2.0'
description 'A Gradle Plugin for the Pony programming language'
repositories {
jcenter()
}
sourceCompatibility = 1.8
dependencies {
compile gradleApi()
compile localGroovy()
testCompile "org.spockframework:spock-core:1.0-groovy-2.4", {
transitive = false
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
classifier "sources"
extension "jar"
}
task javadocJar( type: Jar ) {
classifier "javadoc"
from javadoc
}
/* Publishing config */
artifacts {
archives javadocJar, sourcesJar
}
// add all the info required by Maven Central to the pom
configure( install.repositories.mavenInstaller ) {
//repository(url: "file://$buildDir")
pom.project {
inceptionYear '2016'
name project.name
packaging 'jar'
description project.description
url 'https://github.com/renatoathaydes/pony-gradle-plugin'
scm {
connection 'git@github.com:renatoathaydes/pony-gradle-plugin.git'
developerConnection 'git@github.com:renatoathaydes/pony-gradle-plugin.git'
url 'https://github.com/renatoathaydes/pony-gradle-plugin'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'renatoathaydes'
name 'Renato Athaydes'
email 'renato@athaydes.com'
}
}
}
}
pluginBundle {
website = 'https://github.com/renatoathaydes/pony-gradle-plugin'
vcsUrl = 'https://github.com/renatoathaydes/pony-gradle-plugin'
//noinspection GroovyAssignabilityCheck
plugins {
ponyPlugin {
id = 'com.athaydes.pony'
displayName = 'Pony Gradle Plugin'
description = project.description
version = project.version
tags = [ 'language', 'pony', 'gradle' ]
}
}
}
apply plugin: 'com.jfrog.bintray'
bintray {
user = project.hasProperty("bintrayUserName") ? bintrayUserName : null
key = project.hasProperty("bintrayApiKey") ? bintrayApiKey : null
configurations = [ 'archives' ]
publish = true
pkg {
repo = 'maven'
name = 'pony-gradle-plugin'
licenses = ['Apache-2.0']
desc = project.description
vcsUrl = 'https://github.com/renatoathaydes/pony-gradle-plugin.git'
websiteUrl = 'https://github.com/renatoathaydes/pony-gradle-plugin'
issueTrackerUrl = 'https://github.com/renatoathaydes/pony-gradle-plugin/issues'
labels = [ 'language', 'pony', 'gradle' ]
publicDownloadNumbers = true
//noinspection GroovyAssignabilityCheck
version {
name = project.version
vcsTag = project.version
gpg {
sign = true
}
mavenCentralSync {
sync = true
user = ossrhUsername
password = ossrhPassword
close = '1' // '0' to NOT close
}
}
}
}
bintrayUpload.dependsOn build, sourcesJar
publishPlugins.dependsOn build, sourcesJar