-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (47 loc) · 1.11 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
plugins {
id 'maven-publish'
id 'dev.ultreon.photon' version '0.1.0'
}
photon {
production = true
modProject = project
// Set your properties in the gradle.properties file
projectName = property("mod_displayName")
projectVersion = property("mod_version")
projectGroup = property("mod_group")
projectId = property("mod_name")
javaVersion = 21
}
group = photon.projectGroup
version = photon.projectVersion
base {
archivesName = photon.projectId
}
repositories {
mavenCentral()
}
dependencies {
quantum photon.client(property("versions_quantum").toString())
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
processResources {
filesMatching('fabric.mod.json') {
expand(project.properties)
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
mavenLocal()
// Add your repository here
// maven { url "https://myrepo.example.com/releases" }
}
}