-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (37 loc) · 1.02 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
import org.apache.tools.ant.filters.ReplaceTokens
import org.apache.tools.ant.taskdefs.condition.Os
repositories {
mavenLocal()
mavenCentral()
}
// apply plugin
apply plugin: 'java'
apply plugin: 'java-library-distribution'
apply plugin: 'idea'
def version_file = new File('.version')
if(version_file.exists()) {
version = version_file.text
}
println "${group}.${project.name}-${version}"
dependencies {
testCompile 'junit:junit:4.+'
compile 'org.bouncycastle:bcprov-jdk16:1.+'
compile 'com.googlecode.json-simple:json-simple:1.+'
}
// Task "distZip" added by plugin "java-library-distribution":
distZip.shouldRunAfter(build)
jar {
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF', '.gitkeep'
manifest {
attributes 'Main-Class': 'grantedbyme.Main', 'Class-Path': configurations.runtime.files.collect { "lib/$it.name" }.join(' ')
}
}
artifacts {
archives jar
}
uploadArchives {
repositories {
mavenLocal()
}
}
defaultTasks 'clean', 'build', 'jar'