-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (44 loc) · 1.21 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
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java-library'
id 'maven-publish'
}
repositories {
mavenCentral()
}
sourceCompatibility = 21
targetCompatibility = 21
dependencies {
implementation 'dnsjava:dnsjava:3.5.3'
implementation 'com.sanctionco.jmail:jmail:1.6.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/noticeable-app/kickmail")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GH_PACKAGES_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GH_PACKAGES_WRITE_TOKEN")
}
}
}
publications {
github(MavenPublication) {
groupId = 'io.noticeable'
artifactId = 'kickmail'
version = '1.0.0'
from(components.java)
}
}
}
build.dependsOn clean
publish.dependsOn build
tasks.withType(JavaCompile) {
options.compilerArgs << '-parameters'
}
test {
useJUnitPlatform()
}