-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
60 lines (51 loc) · 1.24 KB
/
build.gradle
File metadata and controls
60 lines (51 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
51
52
53
54
55
56
57
58
59
60
plugins {
id 'java'
id 'maven-publish'
}
group = 'fr.traqueur'
version = property("version")
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.4-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
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}