This repository has been archived by the owner on Jul 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
106 lines (86 loc) · 2.2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
buildscript {
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
}
}
plugins {
id 'maven'
id 'maven-publish'
id "org.jetbrains.kotlin.jvm" version "1.1.51"
}
group 'io.ark'
version '1.0.0'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
jcenter()
mavenCentral()
maven { url "http://dl.bintray.com/jetbrains/spek" }
}
junitPlatform {
filters {
engines {
include 'spek'
}
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each() {
it.scope*.value = 'compile'
}
}
}
}
}
model {
tasks.generatePomFileForMavenPublication {
destination = file("$buildDir/libs/ark-kotlin-1.0.0.pom")
}
}
kotlin {
experimental {
coroutines "enable"
}
}
dependencies {
//Kotlin
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:1.1.51"
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.21'
compileClasspath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.51"
compile 'com.github.kittinunf.fuel:fuel-moshi:1.12.0'
//Crypto
compile 'org.bitcoinj:bitcoinj-core:0.14.5'
// Logging
compile 'org.slf4j:slf4j-api:1.7.+'
compile 'ch.qos.logback:logback-classic:1.+'
//IDK
compile 'com.madgag.spongycastle:core:1.54.0.0'
//JSON
compile 'com.google.code.gson:gson:2.8.0'
//Testing
testCompile 'org.jetbrains.spek:spek-api:1.1.5'
testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.1.5'
testCompile 'junit:junit:4.11'
compile 'com.nhaarman:mockito-kotlin:1.5.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}