-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (49 loc) · 1.33 KB
/
build.gradle
File metadata and controls
58 lines (49 loc) · 1.33 KB
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
plugins {
id 'com.gradleup.shadow' version '9.2.2'
id 'java-library'
id 'maven-publish'
}
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
dependencies {
implementation 'dnsjava:dnsjava:3.6.3'
implementation 'com.sanctionco.jmail:jmail:2.1.0'
testImplementation(platform('org.junit:junit-bom:6.0.1'))
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
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 = '2.0.0'
from(components.java)
}
}
}
build.dependsOn clean
publish.dependsOn build
tasks.withType(JavaCompile) {
options.compilerArgs << '-parameters'
options.compilerArgs << '-Xlint:deprecation'
}
test {
useJUnitPlatform()
}