forked from jphp-group/jphp-websocket-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
44 lines (35 loc) · 986 Bytes
/
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
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"
version '1.1.5'
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
sourceSets {
main.java.srcDirs = ['src-jvm/main/java']
main.resources.srcDirs = ['src-jvm/main/resources']
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/groups/public' }
}
configurations { provided }
sourceSets { main { compileClasspath += configurations.provided } }
dependencies {
provided files('jars/x-jphp-websocket-client-1.1.5.jar')
provided files('jars/x-nv-websocket-client-2.6.jar')
provided files('vendor/jphp-runtime/jars/jphp-runtime-1.0.3.jar')
compile 'com.neovisionaries:nv-websocket-client:2.6'
}
jar {
destinationDir = file('jars/')
baseName = 'x-jphp-websocket-client'
}
task copyJars(type: Copy) {
from project.configurations.compile
into file(projectDir.path + '/jars/')
rename { name -> 'x-' + name }
}