forked from Cascading/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
133 lines (110 loc) · 3.91 KB
/
build.gradle
File metadata and controls
133 lines (110 loc) · 3.91 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
* Copyright (c) 2007-2013 Concurrent, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven{ url 'http://conjars.org/repo/' }
maven{ url 'http://dl.bintray.com/content/aalmiray/asciidoctor' }
maven{ url 'http://jcenter.bintray.com' }
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:0.5.0'
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2'
}
}
ext.redshiftPostgresVersion = '8.0-318.jdbc3'
ext.hadoopVersion = "1.2.1"
ext.cascadingVersion = '2.5.5'
ext.cascadingJDBCVersion = '2.5.4'
ext.slf4jVersion = '1.7.2'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply from: "${rootDir}/etc/s3Upload.gradle"
subprojects {
apply plugin: 'java'
apply plugin: 'asciidoctor'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'fatjar'
repositories {
mavenLocal()
mavenCentral()
maven{ url 'http://conjars.org/repo/' }
maven{ url 'http://dl.bintray.com/content/aalmiray/asciidoctor' }
maven{ url 'http://jcenter.bintray.com' }
}
dependencies {
compile group: 'cascading', name: 'cascading-jdbc-redshift', version: cascadingJDBCVersion
/*compile group: 'cascading', name: 'cascading-jdbc-teradata', version: cascadingJDBCVersion*/
compile group: 'postgresql', name: 'postgresql', version: redshiftPostgresVersion
compile group: 'cascading', name: 'cascading-core', version: cascadingVersion
compile group: 'cascading', name: 'cascading-hadoop', version: cascadingVersion
compile group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
compile( group: 'org.apache.hadoop', name: 'hadoop-core', version: hadoopVersion ) {
exclude group: 'ant'
exclude group: 'junit'
exclude group: 'hsqldb'
exclude group: 'oro'
}
}
asciidoctor {
//sourceDocumentName = file( 'src/asciidoc/index.adoc' )
// http://asciidoc.org/userguide.html#X88
// attributed must all be lowercase
def attributes = [
toc2: '',
//revnumber: version,
'source-highlighter': 'highlightjs',
'highlightjs-theme': 'zenburn',
'linkcss!': '',
stylesdir: "src/site/stylesheets/",
stylesheet: 'cascading.css',
'data-uri': '',
imagesdir: "${project.name}/src/site/images/",
//artifactsurl: project.s3Bucket,
//docsurl: project.s3BucketDocs,
//projectroot: project.rootDir,
analyticsid: System.properties[ 'analytics.id' ],
analyticsdomain: System.properties[ 'analytics.domain' ]
// disabled till attributes in docinfo is supported
// docinfo1: '',
]
options = [
template_dir: 'src/templates/',
eruby: 'erubis',
attributes: attributes
]
}
task zipDocs( type: Zip, dependsOn: asciidoctor ){
baseName = "${project.name}"
from (asciidoctor.outputDir){
include '*.*'
}
into "${project.name}"
}
task docDist( type: Copy, dependsOn: [ asciidoctor, zipDocs ] ) {
description = "publish documentation"
from asciidoctor.outputDir
from zipDocs.archivePath
into "${rootProject.s3UploadDocs.source}/${project.name}"
rootProject.s3UploadDocs.dependsOn docDist
}
}