-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (45 loc) · 1.36 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
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"
version '1.0.0'
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' }
maven { url 'https://mvnrepository.com' }
}
configurations { provided }
sourceSets { main { compileClasspath += configurations.provided } }
dependencies {
provided files('jars/x-asm-7.1.jar')
provided files('jars/x-asm-analysis-7.1.jar')
provided files('jars/x-asm-commons-7.1.jar')
provided files('jars/x-asm-tree-7.1.jar')
provided files('jars/x-asm-util-7.1.jar')
provided files('jars/x-graal-sdk-19.3.1.jar')
provided files('jars/x-icu4j-64.2.jar')
provided files('jars/x-jphp-graaljs-ext-1.0.0.jar')
provided files('jars/x-js-19.3.1.jar')
provided files('jars/x-regex-19.3.1.jar')
provided files('jars/x-truffle-api-19.3.1.jar')
provided files('vendor/jphp-runtime/jars/jphp-runtime-1.0.3.jar')
compile 'org.graalvm.js:js:19.3.1'
}
jar {
destinationDir = file('jars/')
baseName = 'x-jphp-graaljs-ext'
}
task copyJars(type: Copy) {
from project.configurations.compile
into file(projectDir.path + '/jars/')
rename { name -> 'x-' + name }
}