forked from bertramdev/asset-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (89 loc) · 2.76 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
}
}
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'java-library'
apply plugin: 'idea'
group = 'com.bertramlabs.plugins'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = '1.11'
targetCompatibility = '1.11'
java {
withSourcesJar()
withJavadocJar()
}
repositories {
mavenLocal()
mavenCentral()
mavenCentral()
}
dependencies {
api project(':asset-pipeline-core')
api 'org.codehaus.groovy:groovy:2.4.19'
api 'org.mozilla:rhino:1.7R4'
testImplementation "org.spockframework:spock-core:1.3-groovy-2.4"
}
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://[email protected]/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 '[email protected]'
}
}
}
}
from components.java
}
}
repositories {
maven {
if( !isReleaseVersion ) {
url = "http://nexus.bertramlabs.com/content/repositories/snapshots"
if(project.hasProperty('labsNexusUser')) {
credentials {
username = labsNexusUser
password = labsNexusPassword
}
}
}
}
}
}
task(console, dependsOn: 'classes', type: JavaExec) {
main = 'groovy.ui.Console'
classpath = sourceSets.main.runtimeClasspath
}
test {
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
}