-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
86 lines (71 loc) · 1.97 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
repositories {
mavenCentral()
}
apply {
plugin 'java'
plugin 'com.jfrog.bintray'
plugin 'maven-publish'
plugin 'jacoco'
}
//create source jar
tasks.create('sourceJar', Jar) {
from sourceSets.main.allJava
}
group = 'gradle.plugin.com.github.moley'
version = '0.1'
dependencies {
compile gradleApi()
implementation 'org.apache.httpcomponents:httpclient:4.2.6'
implementation 'commons-lang:commons-lang:2.6'
implementation 'commons-io:commons-io:2.4'
implementation 'org.json:json:20090211'
implementation 'org.jsoup:jsoup:1.12.2'
testCompile 'junit:junit:4.12'
}
//publish the additional source jar
publishing {
publications {
myPublication(MavenPublication) {
from components.java
artifact project.sourceJar {
classifier 'sources'
}
}
}
}
bintray {
user = System.properties['bintray.username']
key = System.properties['bintray.password']
publications = ['myPublication']
pkg {
repo = 'gradle-doctoolchain-plugin'
name = "${project.name}"
desc = 'generate api documentation in java doc manner'
websiteUrl = 'https://github.com/moley/gradle-doctoolchain-plugin'
issueTrackerUrl = 'https://github.com/moley/gradle-doctoolchain-plugin'
vcsUrl = 'https://github.com/moley/gradle-doctoolchain-plugin.git'
licenses = ['Apache-2.0']
labels = ['apidoc', 'gradle', 'documentation', 'plugin']
attributes= ['plat': ['win', 'linux', 'osx']]
publicDownloadNumbers = true
version.attributes = [ 'gradle-plugin': "gradle.plugin.com.github.moley.${project.name}:gradle.plugin.com.github.moley:${project.name}" ]
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
project.sourceCompatibility = JavaVersion.VERSION_1_8
project.targetCompatibility = JavaVersion.VERSION_1_8
check.dependsOn jacocoTestReport