-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (41 loc) · 1.2 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
plugins {
id 'java'
id 'idea'
id 'maven'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group 'com.neopsis'
version '1.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
apply plugin: 'java'
apply plugin: 'idea'
repositories {
mavenCentral()
}
dependencies {
compileOnly fileTree(dir: '/Users/Robert/Library/jEdit/jars', include: '*.jar')
compileOnly fileTree(dir: '/Applications/jEdit.app/Contents/Java/jars', include: '*.jar')
compileOnly files('/Applications/jEdit.app/Contents/Java/jedit.jar')
}
// *******************************************************
// Shadow JAR makes a new fatjar
// *******************************************************
shadowJar {
mergeServiceFiles()
// classifier = null
configurations = [project.configurations.compile]
from('src/main/java') {
include '**/*.py'
}
doLast {
copy {
from(project.buildDir.toString() + '/libs')
include(baseName + '-' + version + '-all.jar')
rename(baseName + '-' + version + '-all.jar', 'JythonInterpreter.jar')
into {
file('/Applications/jEdit.app/Contents/Java/jars')
}
}
}
}