forked from 4finance/uptodate-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·106 lines (89 loc) · 2.46 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
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5'
if (project.hasProperty('coverage')) {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
}
}
}
apply plugin: 'com.jfrog.bintray'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
group = 'com.ofg'
description = 'Core of UpToDate plugin'
version = '1.3.2-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
compile gradleApi()
compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2'
testCompile 'junit:junit:4.11'
testCompile 'org.spockframework:spock-core:0.7-groovy-1.8'
testCompile 'com.github.tomakehurst:wiremock:1.47'
testRuntime 'cglib:cglib-nodep:2.2.2'
testRuntime 'org.objenesis:objenesis:1.2'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
bintrayUpload.dependsOn 'build'
publishing {
publications {
plugin(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = System.properties['bintrayUser']
key = System.properties['bintrayKey']
publications = ['plugin']
pkg {
repo = 'uptodate-gradle-plugin'
userOrg = '4finance'
name = 'uptodate-gradle-plugin'
desc = 'Gradle plugin that tells you what libs have new versions in Maven Central / JCenter'
licenses = ['Apache-2.0']
labels = ['gradle']
version {
attributes = ['gradle-plugin': 'com.ofg.uptodate:com.ofg:uptodate-gradle-plugin']
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from groovydoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
if (project.hasProperty('coverage')) {
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
jacoco {
toolVersion = '0.7.1.201405082137'
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
test {
ignoreFailures = true
}
}