-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (33 loc) · 860 Bytes
/
build.gradle
File metadata and controls
42 lines (33 loc) · 860 Bytes
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
plugins {
id 'java-library'
}
sourceCompatibility = JavaVersion.toVersion(targetJavaVersion)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
//implementation 'com.github.ByDSA:questions:Tag'
}
void clear() {
println "Delete buildDir ${buildDir}"
delete buildDir
}
void moveLib(String outDir) {
def file = "${buildDir}/libs/" + project.baseName + "-${project.version}.jar"
println "Moving lib file ${file} to ${outDir}"
ant.move file: "${file}",
todir: "${outDir}"
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
doLast {
//moveLib("${projectDir}/..");
//clear();
}
baseName project.baseName
}