-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.gradle
80 lines (68 loc) · 2.04 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
import java.nio.file.Files
import java.nio.file.Paths
plugins {
id 'java-library'
// id 'maven-publish'
}
group 'com.github.serezhka'
version '1.0.5'
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_9
}
dependencies {
implementation 'org.jmdns:jmdns:3.5.7'
implementation 'net.i2p.crypto:eddsa:0.3.0'
implementation 'org.whispersystems:curve25519-java:0.5.0'
implementation 'com.googlecode.plist:dd-plist:1.23'
implementation 'org.slf4j:slf4j-api:1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.36'
}
test {
useJUnitPlatform()
}
wrapper {
gradleVersion = '7.4.2'
distributionType = Wrapper.DistributionType.ALL
}
task fatJar(type: Jar) {
archiveClassifier.set('all')
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task jarSources(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
artifacts {
archives jarSources
}
// Load `local.properties` file, if it exists
//if (Files.exists(Paths.get("$project.rootDir/local.properties"))) {
// def localProperties = new Properties()
// localProperties.load(new FileInputStream("$project.rootDir/local.properties"))
// localProperties.each { prop -> project.ext.set(prop.key, prop.value) }
//}
//
//publishing {
// repositories {
// maven {
// name = "GitHubPackages"
// url = uri("https://maven.pkg.github.com/serezhka/${rootProject.name}")
// credentials {
// username = project.findProperty("github_username") ?: System.getenv("GITHUB_ACTOR")
// password = project.findProperty("github_token") ?: System.getenv("GITHUB_TOKEN")
// }
// }
// }
// publications {
// gpr(MavenPublication) {
// from(components["java"])
// artifact(tasks["fatJar"])
// }
// }
//}