forked from freenet-mobile/node-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (70 loc) · 2.22 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
plugins {
id 'java-library'
id 'maven-publish'
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
group = 'org.freenetproject.mobile'
version = '2.4'
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier.set("sources")
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set("javadoc")
from javadoc.destinationDir
}
publishing {
publications {
mavenAar(MavenPublication) {
from components.java
afterEvaluate {
artifact javadocJar
artifact sourcesJar
}
}
}
}
task jar (type: Jar, overwrite: true) {
archivesBaseName = "node-wrapper"
}
repositories {
mavenCentral()
maven { url 'https://mvn.freenetproject.org' }
maven { url "https://jitpack.io" }
}
dependencies {
// Freenet dependencies
api 'com.github.freenet:fred:build01494'
api 'org.bouncycastle:bcpkix-jdk15on:1.59'
api "org.bouncycastle:bcprov-jdk15on:1.59"
// Extracted from freenet-ext
api "tanukisoft:wrapper:3.2.3"
api "org.apache.commons:commons-compress:1.4.1"
api "org.b1.pack:lzma-sdk-4j:9.22.0"
// Extracted from freenet-ext, adopted into freenet-mobile group
api 'com.github.freenet-mobile:mantissa:0.0.3'
api "com.github.freenet-mobile:lzmajio:0.95.4"
api 'com.github.freenet-mobile:onion-common:0.0.3'
api 'com.github.freenet-mobile:onion-fec:0.0.4'
api 'com.github.freenet-mobile:freenet-ext:0.60.3'
implementation 'com.github.Bombe:jFCPlib:v0.1.6'
// End Freenet dependencies
// Random strings for ssl.sslKeyStorePass
implementation 'org.apache.commons:commons-lang3:3.9'
// Android compatible logging
implementation 'co.trikita:log:1.1.5'
// Use JUnit Jupiter API for testing.
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
testImplementation 'org.mockito:mockito-core:2.28.2'
testImplementation 'org.mockito:mockito-junit-jupiter:2.28.2'
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
tasks.named('test') {
// Use junit platform for unit tests.
useJUnitPlatform()
}