forked from gmazelier/gradle-jasperreports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (80 loc) · 2.08 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
plugins {
id 'com.gradle.plugin-publish' version '0.10.1'
id 'net.researchgate.release' version '2.6.0'
id 'groovy'
id 'maven-publish'
id 'java-gradle-plugin'
}
// Unless overridden in the pluginBundle config DSL, the project version will
// be used as your plugin version when publishing
group = 'com.github.gmazelier'
version = project.property('version')
repositories {
jcenter()
mavenCentral()
maven {
url 'http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/'
}
}
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation 'net.sf.jasperreports:jasperreports:6.10.0'
implementation 'org.codehaus.gpars:gpars:1.2.1'
testImplementation 'junit:junit:4.12'
}
// Use java-gradle-plugin to generate plugin descriptors and specify plugin ids
gradlePlugin {
plugins {
jasperreports {
id = 'com.github.gmazelier.jasperreports'
implementationClass = 'com.github.gmazelier.plugins.JasperReportsPlugin'
}
}
}
pluginBundle {
// These settings are set for the whole plugin bundle
website = 'https://github.com/gmazelier/gradle-jasperreports'
vcsUrl = 'https://github.com/gmazelier/gradle-jasperreports.git'
description = 'Provides the capability to compile JasperReports design files.'
tags = ['gradle', 'jasperreports']
plugins {
jasperreports {
// id is captured from java-gradle-plugin configuration
displayName = 'Gradle JasperReports Plugin'
}
}
}
publishing {
// uncomment the following section to publish plugin to local maven repository using the following task:
// $ gradle publishToMavenLocal
/*
repositories {
mavenLocal()
}
*/
publications {
mavenJava(MavenPublication) {
afterEvaluate {
artifact sourcesJar
artifact groovydocJar
}
}
}
}
compileGroovy {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
archiveClassifier.set('groovydoc')
from groovydoc.destinationDir
}
artifacts {
archives sourcesJar
archives groovydocJar
}