-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.82 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
56
57
58
59
60
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/4.6/userguide/tutorial_java_projects.html
*/
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building an application
id 'application'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = "org.btcprivate.wallets.fullnode.ui.BTCPWalletUI"
repositories {
mavenCentral()
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class':'org.btcprivate.wallets.fullnode.ui.BTCPWalletUI'
}
//baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
//avoid signage issues
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
with jar
}
tasks.fatJar.doFirst{
File file = file('src/main/java/org/btcprivate/wallets/fullnode/ui/BTCPWalletUI.java')
file.readLines().each{
if(it.contains("private static final String VERSION")){
def versionString =it.split("=")[1]
version=versionString.substring(2, versionString.length()-2)
}
}
compileJava {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
dependencies {
compile group: 'org.bitcoinj', name: 'bitcoinj-core', version: '0.14.5'
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.21.0'
compile group: 'org.vafer', name: 'jdeb', version: '1.5'
compile group: 'com.eclipsesource.minimal-json', name: 'minimal-json', version: '0.9.5'
// Use JUnit test framework
testCompile group:'junit', name:'junit', version:'4.12'
}