-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
119 lines (99 loc) · 2.97 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
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
}
}
plugins {
id "com.jfrog.bintray" version "1.2"
}
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'
group = 'com.bertramlabs.plugins'
version = '2.5.0'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
compile "com.bertramlabs.plugins:asset-pipeline-core:2.5.0"
compile 'org.codehaus.groovy:groovy:2.0.7'
compile 'org.mozilla:rhino:1.7R4'
compile 'log4j:log4j:1.2.17'
testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
}
publishing {
publications {
maven(MavenPublication) {
artifactId 'ember-asset-pipeline'
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'ember-asset-pipeline'
description 'Ember.js Template Compiler (Handlebars.js) for JVM Asset Pipeline.'
url 'https://github.com/bertramdev/ember-asset-pipeline'
scm {
url 'https://github.com/bertramdev/ember-asset-pipeline'
connection 'scm:https://bertramdev@github.com/bertramdev/ember-asset-pipeline.git'
developerConnection 'scm:git://github.com/bertramdev/ember-asset-pipeline.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'davydotcom'
name 'David Estes'
email 'davydotcom@gmail.com'
}
}
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
if(project.hasProperty('bintrayUser')) {
user = bintrayUser
key = bintrayKey
}
publications = ['maven']
pkg {
repo = 'asset-pipeline'
userOrg = 'bertramlabs'
name = 'ember-asset-pipeline'
licenses = ['Apache-2.0']
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task(console, dependsOn: 'classes', type: JavaExec) {
main = 'groovy.ui.Console'
classpath = sourceSets.main.runtimeClasspath
}
test {
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
}
bintrayUpload.dependsOn build, sourcesJar, javadocJar