forked from tim-group/SassPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (47 loc) · 1.71 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'eclipse'
/*
* HELLO! This build script works with Gradle 1.0-milestone-9.
*/
group = 'com.timgroup'
def majorVersion = 1
def minorVersion = 0
def isReleaseVersion = System.getenv('BUILD_NUMBER') != null
// the date formatting is a bit overcomplicated because we need this to work in M3 (for now)
import java.text.SimpleDateFormat
def snapshotDateFormat = new SimpleDateFormat('yyyyMMdd-HHmmss')
snapshotDateFormat.setTimeZone(TimeZone.getTimeZone('UTC'))
def patchVersion = isReleaseVersion ? System.getenv('BUILD_NUMBER') : snapshotDateFormat.format(new Date())
def patchSeparator = isReleaseVersion ? '.' : '-'
version = "${majorVersion}.${minorVersion}${patchSeparator}${patchVersion}"
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor': 'youDevise Ltd',
'Implementation-Vendor-Id': project.group,
'Implementation-URL': 'https://github.com/youdevise/SassPlugin'
)
}
}
repositories {
mavenRepo name: 'ydPublic', urls: "${repoUrl}/groups/public"
}
dependencies {
groovy localGroovy()
compile gradleApi()
runtime group: 'org.jruby', name: 'jruby-complete', version: '1.6.7.2'
runtime group: 'me.n4u.sass', name: 'sass-gems', version: '3.1.16'
testCompile group: 'junit', name: 'junit', version: '4.10'
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "${project.repoUrl}/repositories/yd-release-candidates") {
authentication(userName: project.repoUsername, password: project.repoPassword)
}
}
}
}