-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (46 loc) · 1.24 KB
/
build.gradle.kts
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
plugins {
id("java")
id("maven-publish")
id("checkstyle")
id("co.uzzu.dotenv.gradle") version "4.0.0"
}
group = "ovh.neziw"
version = "1.0.0"
tasks.withType<JavaCompile> {
options.compilerArgs = listOf("-Xlint:deprecation")
options.encoding = "UTF-8"
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
checkstyle {
toolVersion = "10.20.1"
maxWarnings = 0
}
repositories {
gradlePluginPortal()
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "${project.group}"
artifactId = project.name
version = "${project.version}"
from(components["java"])
}
}
repositories {
maven {
name = "neziw-repo"
url = uri("https://repo.neziw.ovh/releases/")
credentials {
val usernameKey = "MVN_USER"
val passwordKey = "MVN_PASS"
username = if (env.isPresent(usernameKey)) env.fetch(usernameKey) else System.getenv(usernameKey)
password = if (env.isPresent(passwordKey)) env.fetch(passwordKey) else System.getenv(passwordKey)
}
}
}
}