-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
136 lines (120 loc) · 3.58 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'maven-publish'
id "org.ajoberstar.grgit" version "5.2.0"
id 'org.jetbrains.kotlin.jvm' version '1.8.10'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.10'
id 'me.fallenbreath.yamlang' version '1.3.0'
id "com.jfrog.artifactory" version "5.1.10"
}
version = project.mod_version
group = project.maven_group
allprojects {
repositories {
mavenCentral()
maven {
url 'https://masa.dy.fi/maven'
}
maven { url 'https://maven.wispforest.io' }
maven {
name = "CurseForge"
url = "https://cursemaven.com"
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
maven {
name = "CottonMC"
url = "https://server.bbkr.space/artifactory/libs-release"
}
maven {
name = "jitpack"
url = 'https://jitpack.io'
}
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand(
"version": project.version,
"is_main_branch": project.is_main_branch
)
}
}
}
dependencies {
// implementation 'org.bouncycastle:'
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// Kotlin support
modApi("net.fabricmc:fabric-language-kotlin:1.9.2+kotlin.1.8.10")
// MaLiLib, required on client
modApi "fi.dy.masa.malilib:malilib-fabric-1.20.1:0.16.2"
// carpet, required on client & server
modApi "carpet:fabric-carpet:1.20-1.4.112+v230608"
// Game test
modApi "net.fabricmc:fabric-loader-junit:${project.loader_version}"
//include(implementation("org.bouncycastle:bcprov-jdk18on:1.76"))
//include(implementation("org.bouncycastle:bcpg-jdk18on:1.76"))
include(implementation("com.squareup.okhttp3:okhttp:4.11.0"))
include(implementation("com.squareup.okio:okio-jvm:3.2.0"))
modApi "curse.maven:litematica-308892:4626718"
modApi "curse.maven:tweakeroo-297344:4623488"
modApi "maven.modrinth:modmenu:7.2.1"
modApi "io.wispforest:owo-lib:${project.owo_version}"
}
test {
useJUnitPlatform()
}
base {
archivesName = project.archives_base_name
}
loom {
accessWidenerPath = file("src/main/resources/reden.accesswidener")
}
yamlang {
targetSourceSets = [sourceSets.main]
inputDir = 'assets/reden/lang'
}
kotlin {
jvmToolchain(17)
}
java {
withSourcesJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
jar {
from("LICENSE") {
rename { "${it}_${base.archivesName.get()}"}
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
maven {
url = uri('https://maven.starlight.cool/artifactory/reden')
credentials {
username = project.artifactory_user
password = project.artifactory_password
}
}
}
}