-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathbuild.gradle
51 lines (41 loc) · 1.15 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
plugins {
id 'java-library'
}
group 'com.github.serezhka'
version '1.0.5'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
}
dependencies {
implementation 'io.netty:netty-all:4.1.77.Final'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'com.github.serezhka:java-airplay-lib:1.0.5'
// implementation files("$project.rootDir\\..\\java-airplay-lib\\build\\libs\\java-airplay-lib-1.0.5-all.jar")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
}
wrapper {
gradleVersion = '7.4.2'
distributionType = Wrapper.DistributionType.ALL
}
task fatJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
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
}