-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (56 loc) · 1.49 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
plugins {
id 'java'
id 'maven-publish'
}
group = 'nu.marginalia'
version = '0.0.10-SNAPSHOT'
repositories {
mavenLocal()
maven { url "https://artifactory.cronapp.io/public-release/" }
maven { url "https://repo1.maven.org/maven2/" }
maven { url "https://www2.ph.ed.ac.uk/maven2/" }
maven { url "https://jitpack.io/" }
exclusiveContent {
forRepository {
maven {
url = uri("https://jitpack.io")
}
}
filter {
// Only use JitPack for the `gson-record-type-adapter-factory` library
includeModule("com.github.Marcono1234", "gson-record-type-adapter-factory")
}
}
mavenCentral()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'nu.marginalia'
artifactId = 'slop'
from components.java
}
}
repositories {
maven {
credentials {
username = project.findProperty("mavenUsr") ?: ""
password = project.findProperty("mavenPwd") ?: ""
}
url = "https://artifacts.marginalia.nu/snapshots"
}
}
}
java {
withSourcesJar()
withJavadocJar()
}
dependencies {
implementation('org.apache.commons:commons-compress:1.26.0')
implementation('com.github.luben:zstd-jni:1.5.2-2')
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}