-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
59 lines (49 loc) · 1.22 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
import org.jsoup.Jsoup
import org.jsoup.nodes.Document
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.5'
id 'org.asciidoctor.jvm.convert' version '3.3.0'
}
group 'de.wlsc'
version '1.4.1'
sourceCompatibility = 11
repositories {
mavenCentral()
}
dependencies {
implementation 'com.github.javaparser:javaparser-core:3.18.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE'
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0'
testRuntime 'org.junit.vintage:junit-vintage-engine:5.7.0'
}
wrapper {
gradleVersion = '6.7.1'
distributionType = Wrapper.DistributionType.ALL
}
asciidoctor {
sourceDir file('.')
outputDir file('build/docs')
sources {
include 'README.adoc'
}
}
intellij {
plugins = ['java']
version = '2020.3'
}
patchPluginXml {
dependsOn asciidoctor
sinceBuild '193'
untilBuild = ''
changeNotes = {
getReadme().select(".sect2").html()
}
pluginDescription = {
getReadme().select(".sect1").get(0).select(".sectionbody").html()
}
}
Document getReadme() {
Jsoup.parse(file('build/docs/README.html').getText('UTF-8'))
}