-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (84 loc) · 2.15 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
buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
plugins {
id 'org.asciidoctor.convert' version '2.2.0'
}
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
url "https://dl.bintray.com/markusoley/leguan"
}
}
apply {
plugin 'groovy'
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()
compile 'org.leguan:leguan-language-java:0.90'
compile 'org.leguan:leguan-gradleutils:0.90'
testCompile 'junit:junit:4.12'
}
asciidoctor {
sourceDir = file 'build/apidocExample'
sources {
include '**/**.adoc'
//include '**/**.yml'
}
options attributes: ['source-highlighter': 'prettify' , 'stylesheet': file("src/main/docs/themes/leguan.css")]
dependsOn tasks.test
}
//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-java-apidoc-plugin'
name = "${project.name}"
desc = 'generate api documentation in java doc manner'
websiteUrl = 'https://github.com/moley/gradle-java-apidoc-plugin'
issueTrackerUrl = 'https://github.com/moley/gradle-java-apidoc-plugin'
vcsUrl = 'https://github.com/moley/gradle-java-apidoc-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
}
}
check.dependsOn jacocoTestReport