-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.61 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
classpath 'com.bluepapa32:gradle-watch-plugin:0.1.5'
}
}
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'com.bluepapa32.watch'
asciidoctor {
sourceDir 'docs'
outputDir "${buildDir}/docs"
attributes 'source-highlighter': 'coderay',
'toc-title' : 'Tabla de Contenidos',
toc : 'left',
icons : 'font'
}
watch {
asciidoctor {
files fileTree(dir: 'docs', include: '**/*.adoc')
tasks 'asciidoctor'
}
}
apply plugin: 'groovy'
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
group = 'papersplz'
version = '0.1.1'
apply plugin: 'maven-publish'
apply from: 'projectVariables.gradle'
publishing {
repositories {
maven {
url repositoryUrl
credentials {
username repositoryUsername
password repositoryPassword
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
repositories {
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.3'
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'org.slf4j:slf4j-simple:1.7.12'
compile 'joda-time:joda-time:2.4'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}