This repository has been archived by the owner on May 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
120 lines (95 loc) · 3.13 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
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
apply plugin: 'groovy'
apply plugin: 'maven'
group = 'com.github.plecong'
version = '3.1-SNAPSHOT'
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
sourceSets {
perfTest {
groovy.srcDirs = ['src/perf/groovy']
}
}
dependencies {
groovy 'org.codehaus.groovy:groovy:1.8.6'
testCompile('org.spockframework:spock-core:0.6-groovy-1.8') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
perfTestCompile 'com.googlecode.gbench:gbench:0.3.0-groovy-1.8'
perfTestCompile 'com.samskivert:jmustache:1.5'
perfTestCompile 'com.github.spullara.mustache.java:compiler:0.7.3-SNAPSHOT'
perfTestCompile 'org.mozilla:rhino:1.7R3'
perfTestCompile sourceSets.main.output
perfTestCompile sourceSets.test.output
perfTestCompile sourceSets.test.compileClasspath
}
groovydoc {
def title = "Hogan.groovy ${version}"
windowTitle title
docTitle title
link 'http://groovy.codehaus.org/gapi/', 'org.codehaus.groovy.,groovy.'
}
task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from 'build/docs/groovydoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '1.0-rc-1'
}
task performanceTest(type: JavaExec, dependsOn: testClasses) {
classpath sourceSets.perfTest.runtimeClasspath
main = 'Simple'
}
if (hasProperty('sonatypeUsername') && hasProperty('sonatypePassword')) {
apply plugin: 'signing'
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
def auth = {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/", auth)
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots", auth)
pom.project {
name 'Hogan.groovy'
artifactId = 'hogan-groovy'
packaging 'jar'
description 'A Groovy port of the Hogan.js compiler for Mustache templates.'
inceptionYear '2012'
url 'http://github.com/plecong/Hogan.groovy'
scm {
url 'scm:git://github.com/plecong/Hogan.groovy.git'
connection 'scm:git://github.com/plecong/Hogan.groovy.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'plecong'
name 'Phuong LeCong'
}
}
}
}
}
}
}