-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (45 loc) · 1.09 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'
id 'maven-publish'
}
group = 'com.vicious'
version = '17-1.3.0'
repositories {
mavenCentral()
maven {
url 'https://cdn.sussy.tech/repo2/'
}
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.jetbrains:annotations:24.0.0'
implementation 'org.jetbrains:annotations:24.0.0'
}
test {
useJUnitPlatform()
}
java {
withSourcesJar()
//withJavadocJar()
}
publishing {
repositories {
maven {
name = "Persist"
url = uri("https://maven.pkg.github.com/Drathonix/Persist")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_API_KEY")
}
}
}
publications {
gpr(MavenPublication) {
groupId = "com.vicious"
artifactId = 'persist'
version = "${version}"
from components.java
}
}
}