-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
85 lines (70 loc) · 1.82 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.6.4'
}
}
apply plugin: 'gradlefx'
apply plugin: 'maven'
apply plugin: 'signing'
group = 'org.graniteds'
version = '1.0'
type = 'swc'
output = 'flex-websocket-client-' + version
srcDirs = [ 'src/main/flex' ]
configurations {
deployerJars
}
repositories {
mavenLocal()
}
dependencies {
flexSDK group: 'com.adobe', name: 'flex-sdk', version: '3.6', ext: 'zip'
deployerJars 'org.apache.maven.wagon:wagon-http:2.2'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from files(srcDirs)
}
artifacts {
archives sourcesJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeOssUserName, password: sonatypeOssPassword)
}
pom.project {
name 'Flex websocket client'
packaging 'swc'
description 'Websocket client derived from the work by gimite'
url 'https://github.com/gimite/web-socket-js'
scm {
url 'scm:[email protected]:graniteds/flex-websocket-client.git'
connection 'scm:[email protected]:graniteds/flex-websocket-client.git'
developerConnection 'scm:[email protected]:graniteds/flex-websocket-client.git'
}
licenses {
license {
name 'GNU LIBRARY GENERAL PUBLIC LICENSE, Version 2, June 1991'
url 'http://opensource.org/licenses/LGPL-2.1'
distribution 'repo'
}
}
developers {
developer {
id 'gimite'
name 'gimite'
}
}
}
}
}
}