This repository was archived by the owner on Dec 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.gradle
More file actions
114 lines (100 loc) · 3.18 KB
/
build.gradle
File metadata and controls
114 lines (100 loc) · 3.18 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
buildscript {
repositories {
mavenLocal()
maven { url 'https://repo.grails.org/grails/core' }
jcenter()
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
classpath 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'
}
}
version file('version.txt').text.trim()
group 'com.agileorbit'
apply plugin: 'idea'
apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.grails.grails-plugin-publish'
apply plugin: 'org.asciidoctor.convert'
repositories {
mavenLocal()
maven { url 'https://repo.grails.org/grails/core' }
}
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
compile 'org.grails:grails-core'
compile 'org.grails:grails-plugin-datasource'
String quartzVersion = '2.2.3'
compile 'org.quartz-scheduler:quartz:' + quartzVersion, {
exclude module: 'c3p0'
}
compile 'org.quartz-scheduler:quartz-jobs:' + quartzVersion
compile 'org.springframework:spring-context-support'
provided 'org.grails.plugins:hibernate'
provided 'org.liquibase:liquibase-core:3.4.2'
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}
grailsPublish {
desc = 'Quartz integration'
developers = [burtbeckwith: 'Burt Beckwith']
githubSlug = 'agileorbit/grails-schwartz'
issueTrackerUrl = 'https://github.com/agileorbit/grails-schwartz/issues'
license {
name = 'Apache-2.0'
}
title = 'Schwartz Plugin'
userOrg = 'agileorbit'
repo = 'grails-plugins'
vcsUrl = 'https://github.com/agileorbit/grails-schwartz/'
}
task docs(dependsOn: [asciidoctor, groovydoc]) << {
File dir = new File(buildDir, 'docs')
['pdf', 'epub'].each { String ext ->
File f = new File(dir, 'index.' + ext)
if (f.exists()) {
f.renameTo new File(dir, project.name + '-' + project.version + '.' + ext)
}
}
new File(buildDir, 'docs/ghpages.html') << file('src/docs/index.tmpl').text.replaceAll('@VERSION@', project.version)
copy {
from 'src/docs'
into new File(buildDir, 'docs').path
include '**/*.jpg', '**/*.png'
}
}
asciidoctor {
separateOutputDirs = false
sourceDir = file('src/docs')
sources {
include 'index.adoc'
}
outputDir new File(buildDir, 'docs')
backends 'html5', 'pdf', 'epub3'
attributes copyright : 'Apache License, Version 2.0',
docinfo1 : 'true',
doctype : 'book',
encoding : 'utf-8',
'front-cover-image' : 'image:cover.png[Front Cover,800,600]',
icons : 'font',
id : project.name + ':' + project.version,
idprefix : '',
idseparator : '-',
lang : 'en',
linkattrs : true,
numbered : '',
producer : 'Asciidoctor',
revnumber : project.version,
setanchors : true,
'source-highlighter' : 'prettify',
toc : 'left',
toc2 : '',
toclevels : '2'
}