-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (32 loc) · 978 Bytes
/
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
plugins {
id 'java'
id 'application'
id 'com.gradle.build-scan' version '1.16'
}
compileJava.options.encoding = 'UTF-8'
mainClassName = 'Main'
def executableBaseName = "bitcoinj-ptarmigan"
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile group: 'org.bitcoinj', name: 'bitcoinj-core', version: '0.15.6'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.29'
compile 'com.squareup.moshi:moshi:1.9.2'
}
sourceSets.main.java.srcDirs = ['src']
jar {
archiveName = "${executableBaseName}.jar"
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
manifest {
attributes ('Main-Class': mainClassName,
'Class-Path': configurations.runtime.files.collect { it.name }.join(' ')
)
}
from configurations.compile.collect {it.isDirectory() ? it : zipTree(it)}
}
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}