-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
65 lines (56 loc) · 1.54 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
plugins
{
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.16.0'
}
group = 'org.myire'
version = '1.1'
repositories
{
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies
{
// The runtime versions of the libraries are dynamically added to the configuration when the
// plugin is loaded
compileOnly 'org.freemarker:freemarker:2.3.31'
compileOnly 'net.sf.saxon:Saxon-HE:9.9.1-8'
testImplementation 'junit:junit:4.13.2'
testRuntimeOnly 'org.freemarker:freemarker:2.3.31'
testRuntimeOnly 'net.sf.saxon:Saxon-HE:9.9.1-8'
}
// Build for compatibility with Java 8
tasks.withType(JavaCompile)
{
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
// Generate the plugin descriptor and specify the plugin's id
gradlePlugin
{
plugins
{
mungePlugin
{
id = 'org.myire.munge'
implementationClass = 'org.myire.munge.MungePlugin'
}
}
}
// Declare the contents of the published artifact
pluginBundle
{
website = 'https://github.com/handmadecode/munge'
vcsUrl = 'https://github.com/handmadecode/munge'
description = 'A Gradle plugin for transforming XML files with XSL stylesheets and FreeMarker templates'
plugins
{
mungePlugin
{
displayName = 'Munge plugin'
description = 'Transform XML files with XSL stylesheets and FreeMarker templates'
tags = ['xml', 'transform', 'xsl', 'saxon', 'freemarker']
}
}
}