-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
94 lines (81 loc) · 2.8 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
plugins {
id 'groovy'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.3.1'
id 'nebula.provided-base' version '3.0.3'
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
targetCompatibility = 1.7
group = 'com.craigburke.angular'
version = '2.4.0'
dependencies {
provided 'com.bertramlabs.plugins:asset-pipeline-core:2.0.12'
provided 'org.codehaus.groovy:groovy-all:2.1.9'
compile 'org.mozilla:rhino:1.7R4'
compile 'com.googlecode.htmlcompressor:htmlcompressor:1.5.2'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.7'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
bintray {
user = project.hasProperty('bintrayUsername') ? project.bintrayUsername : ''
key = project.hasProperty('bintrayApiKey') ? project.bintrayApiKey : ''
publications = ['maven']
pkg {
repo = 'asset-pipeline'
userOrg = 'craigburke'
name = 'angular-template-asset-pipeline'
licenses = ['Apache-2.0']
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId 'angular-template-asset-pipeline'
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'angular-template-asset-pipeline'
description 'AngularJS Templates extension for the Asset Pipeline Library.'
url 'https://github.com/craigburke/angular-template-asset-pipeline'
scm {
url 'https://github.com/craigburke/angular-template-asset-pipeline'
connection 'scm:https://github.com/craigburke/angular-template-asset-pipeline.git'
developerConnection 'scm:https://github.com/craigburke/angular-template-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 'craigburke'
name 'Craig Burke'
email '[email protected]'
}
}
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
bintrayUpload.dependsOn build, sourcesJar, javadocJar