forked from garberlog/ARIS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
53 lines (42 loc) · 1.08 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'
}
allprojects {
group = 'edu.rpi.aris'
version = new File('libaris/src/main/resources/edu/rpi/aris/VERSION').text.trim()
apply plugin: 'idea'
}
subprojects {
apply plugin: 'java'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
sourceCompatibility = 1.8
jar.doFirst {
manifest {
attributes("Implementation-Title": "Aris",
"Implementation-Version": version,
'Class-Path': project.name + ".jar libs/" + configurations.runtime.collect { it.name }.join(' libs/'))
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.jetbrains:annotations:16.0.3'
}
build.doLast {
copy {
into 'jars/libs'
from configurations.runtime
}
copy {
into 'jars'
from jar
rename (jar.archiveName, project.name + ".jar")
}
}
clean.doLast {
file('jars').deleteDir()
file('out').deleteDir()
}
}