-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (60 loc) · 1.58 KB
/
build.gradle
File metadata and controls
72 lines (60 loc) · 1.58 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
plugins {
id 'java-library'
id 're.alwyn974.groupez.publish' version '1.0.0'
id 'com.gradleup.shadow' version '9.0.0-beta11'
}
group = 'fr.traqueur'
version = property("version")
ext.targetFolder = file("target/")
ext.classifier = System.getProperty("archive.classifier")
ext.sha = System.getProperty("github.sha")
if (ext.sha) {
version = ext.sha
}
repositories {
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
maven {
url "https://maven.devs.beer/"
}
maven {
url "https://repo.oraxen.com/releases"
}
}
dependencies {
compileOnly "org.spigotmc:spigot-api:1.21.8-R0.1-SNAPSHOT"
// Hooks
compileOnly 'io.th0rgal:oraxen:1.181.0'
compileOnly 'dev.lone:api-itemsadder:4.0.10'
}
tasks.register('generateVersionProperties') {
doLast {
def file = new File("$projectDir/src/main/resources/recipeapi.properties")
if (!file.parentFile.exists()) {
file.parentFile.mkdirs()
}
file.text = "version=${project.version}"
}
}
processResources.dependsOn generateVersionProperties
build.dependsOn shadowJar
shadowJar {
archiveClassifier.set("")
destinationDirectory.set(project.ext.targetFolder)
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withSourcesJar()
withJavadocJar()
}
publishConfig {
githubOwner = "Traqueur-dev"
useRootProjectName = true
}