-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild.gradle
84 lines (72 loc) · 2.04 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6"
classpath "org.gradle.api.plugins:gradle-nexus-plugin:0.7.1"
classpath "com.github.ben-manes:gradle-versions-plugin:0.12.0"
}
}
apply plugin: 'com.github.ben-manes.versions'
apply plugin: "com.jfrog.bintray"
apply plugin: "groovy"
apply plugin: "nexus"
apply from: "$rootDir/gradle/credentials.gradle"
group = "com.github.robfletcher"
version = "2.0.7"
archivesBaseName = "compass-gradle-plugin"
sourceCompatibility = 1.7
tasks.withType(JavaCompile) {
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
}
tasks.withType(GroovyCompile) {
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
}
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
compile gradleApi()
compile localGroovy()
compile "com.github.jruby-gradle:jruby-gradle-plugin:1.6.0"
compile "gradle.plugin.com.github.jengelman.gradle.plugins:gradle-processes:0.5.0"
testCompile("org.spockframework:spock-core:1.0-groovy-2.4") {
exclude group: "org.codehaus.groovy"
}
testCompile("com.netflix.nebula:nebula-test:4.0.0") {
exclude group: "org.codehaus.groovy"
}
testCompile "net.sourceforge.cssparser:cssparser:0.9.18"
}
test {
systemProperties."compass.gem.dir" = file("${buildDir}/tmp/gems").canonicalPath
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
bintray {
user = project.bintrayUsername
key = project.bintrayApiKey
publish = true
dryRun = false
configurations = ["archives"]
pkg {
userOrg = "robfletcher"
repo = "gradle-plugins"
name = "compass-gradle-plugin"
licenses = ["Apache-2.0"]
labels = ["compass"]
desc = "Gradle plugin for Sass & Compass compilation"
version {
name = project.version
vcsTag = "v${project.version}"
attributes = ["gradle-plugin": "com.github.robfletcher.compass:com.github.robfletcher:compass-gradle-plugin"]
}
}
}
bintrayUpload.dependsOn assemble
defaultTasks "build"