forked from Webbeh/WorldGuard-Events
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (43 loc) · 1.24 KB
/
build.gradle
File metadata and controls
50 lines (43 loc) · 1.24 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
plugins {
id 'java-library'
id 'maven-publish'
}
repositories {
mavenLocal()
maven { url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/') }
maven { url = uri('https://maven.enginehub.org/repo/') }
maven { url = uri('https://repo.maven.apache.org/maven2/') }
}
dependencies {
api libs.org.jetbrains.annotations
compileOnly libs.com.sk89q.worldedit.worldedit.bukkit
compileOnly libs.com.sk89q.worldguard.worldguard.core
compileOnly libs.org.spigotmc.spigot.api
}
group = 'net.raidstone'
version = '1.18.1'
description = 'WorldGuard Events'
java.sourceCompatibility = JavaVersion.VERSION_21
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
url = uri('https://mvn.mathiasd.fr/releases')
credentials {
username = System.getenv("MAVEN_USERNAME") ?: project.findProperty("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD") ?: project.findProperty("MAVEN_PASSWORD")
}
}
}
publications {
mavenJar(MavenPublication) {
from components.java
artifactId = "wgevents"
groupId = group
version = version
}
}
}