-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (78 loc) · 2.19 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id "java-library"
id "maven-publish"
id "com.jfrog.artifactory" version "4.31.5"
}
group = "com.sxtanna.mc.micro"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://repo.aikar.co/content/groups/aikar/")
}
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://maven.enginehub.org/repo/")
}
}
dependencies {
compileOnly("org.jetbrains:annotations:24.0.1")
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.1.0-SNAPSHOT")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
test {
useJUnitPlatform()
}
configurations {
testImplementation.extendsFrom(compileOnly)
}
processResources {
filesMatching("*.yml") {
expand(["project_version": rootProject.version,
"jenkins_version": System.getenv("BUILD_NUMBER")])
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs += ["-parameters"]
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.java
}
}
}
artifactoryPublish {
publications(publishing.publications.mavenJava)
}
artifactory {
contextUrl = "https://repo.sxtanna.com/artifactory"
publish {
repository {
repoKey = "micro-plugins"
username = project.hasProperty("sxtannaArtifactoryUser") ? sxtannaArtifactoryUser : System.getenv("sxtannaArtifactoryUser")
password = project.hasProperty("sxtannaArtifactoryAuth") ? sxtannaArtifactoryAuth : System.getenv("sxtannaArtifactoryAuth")
}
defaults {
publishArtifacts = true
}
}
}