-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
67 lines (57 loc) · 1.85 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
plugins {
id 'com.gradle.plugin-publish' version '0.12.0'
}
apply plugin: 'groovy'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation(group: 'kr.motd.maven', name: 'sphinx-maven-plugin', version: '2.10.0') {
exclude group: 'org.apache.maven.shared', module: 'maven-filtering'
exclude group: 'org.apache.maven.reporting', module: 'maven-reporting-api'
exclude group: 'org.apache.maven.reporting', module: 'maven-reporting-impl'
exclude group: 'com.google.code.findbugs', module: 'jsr305'
}
testImplementation group: 'junit', name: 'junit', version: '4.13.1'
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourceJar
archives javadocJar
}
pluginBundle {
website = 'https://trustin.github.io/sphinx-gradle-plugin/'
vcsUrl = 'https://github.com/trustin/sphinx-gradle-plugin'
plugins {
sphinxPlugin {
id = 'kr.motd.sphinx'
displayName = "${project.name}"
description = 'Sphinx site generation plugin for Gradle'
tags = ['documentation', 'generator', 'python', 'site', 'site-generator', 'sphinx']
}
}
mavenCoordinates {
groupId = "${project.group}"
artifactId = "${project.name}"
}
}
task site(type: JavaExec, dependsOn: tasks.check) {
inputs.dir "${project.projectDir}/src/site/sphinx"
outputs.dir "${project.buildDir}/site"
classpath sourceSets.test.runtimeClasspath
main 'kr.motd.gradle.sphinx.SiteMain'
args "${project.projectDir}", "${gradle.gradleUserHomeDir}"
}