-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
102 lines (87 loc) · 2.86 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
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
id 'signing'
id 'com.gradle.plugin-publish' version '0.14.0'
}
wrapper {
gradleVersion = '5.4.1'
}
group 'nl.martijndwars'
version '0.2.2-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
implementation group: 'com.atlassian.commonmark', name: 'commonmark', version: commonMarkVersion
implementation group: 'com.atlassian.commonmark', name: 'commonmark-ext-gfm-tables', version: commonMarkVersion
implementation group: 'org.jsoup', name: 'jsoup', version: jsoupVersion
implementation group: 'org.xhtmlrenderer', name: 'flying-saucer-core', version: flyingSaucerVersion
implementation group: 'org.xhtmlrenderer', name: 'flying-saucer-pdf-itext5', version: flyingSaucerVersion
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitVersion
testRuntime group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitVersion
// See https://intellij-support.jetbrains.com/hc/en-us/community/posts/360002590379/comments/360000316199
testRuntimeOnly group: 'org.junit.vintage', name: 'junit-vintage-engine', version: junitVersion
testRuntimeOnly group: 'org.junit.platform', name: 'junit-platform-launcher', version: '1.7.1'
}
compileJava {
options.compilerArgs += '-Xlint:deprecation'
}
pluginBundle {
website = 'https://github.com/MartijnDwars/markdown-gradle-plugin'
vcsUrl = 'https://github.com/MartijnDwars/markdown-gradle-plugin'
tags = ['markdown', 'html', 'pdf']
}
gradlePlugin {
plugins {
markdownPlugin {
id = 'nl.martijndwars.markdown'
displayName = 'Markdown Gradle Plugin'
description = 'Compile Markdown to PDF using Gradle.'
implementationClass = 'nl.martijndwars.markdown.MarkdownPlugin'
}
}
}
test {
useJUnitPlatform()
testLogging {
events 'passed', 'skipped', 'failed'
exceptionFormat 'full'
}
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'martijndwars'
name = 'Martijn Dwars'
email = '[email protected]'
}
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}