forked from 19MisterX98/SeedcrackerX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
176 lines (149 loc) · 5.38 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
import net.fabricmc.loom.task.RemapJarTask
plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
sourceSets {
api {
java {
compileClasspath += main.compileClasspath
}
}
main {
java {
compileClasspath += api.output
runtimeClasspath += api.output
}
}
}
repositories {
maven { url "https://maven.terraformersmc.com/releases" }
maven { url "https://maven.shedaniel.me/" }
maven { url "https://maven.latticg.com/" }
maven { url "https://maven.seedfinding.com/" }
maven { url "https://maven-snapshots.seedfinding.com/" }
maven { url "https://jitpack.io" }
}
dependencies {
//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}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
include("net.fabricmc.fabric-api:fabric-command-api-v2:${project.command_api_version}")
include("net.fabricmc.fabric-api:fabric-api-base:${project.fabric_api_base}")
include("net.fabricmc.fabric-api:fabric-resource-loader-v0:${project.resource_loader_version}")
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
include("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}")
modImplementation ("com.terraformersmc:modmenu:${project.modmenu_version}") {transitive = false}
implementation('com.seedfinding:mc_math:0eb505174da8a92550f8ec6efe254e0fa936cc0d') { transitive = false }
implementation('com.seedfinding:mc_seed:5518e3ba3ee567fb0b51c15958967f70a6a19e02') { transitive = false }
implementation('com.seedfinding:mc_core:d685a37f0a466d4bf800e7f285daf9ef73c81678') { transitive = false }
implementation('com.seedfinding:mc_noise:a6ab8e6c688491829f8d2adf845392da22ef8e9c') { transitive = false }
implementation('com.seedfinding:mc_biome:b2271807a047bb43ac60c8c20ad47e315f19b9a6') { transitive = false }
implementation('com.seedfinding:mc_terrain:9e937ddb838e28e79423c287fa18b1ce66f061d7') { transitive = false }
implementation('com.seedfinding:mc_feature:c29fd1fcd746e14c1bcdb127da3113ba273db1fd') { transitive = false }
implementation('com.seedfinding:mc_reversal:ca64c0890c106f1a2207623c316fce86f250b918') { transitive = false }
implementation('com.seedfinding:latticg:1.06')
include('com.seedfinding:mc_math:0eb505174da8a92550f8ec6efe254e0fa936cc0d') { transitive = false }
include('com.seedfinding:mc_seed:5518e3ba3ee567fb0b51c15958967f70a6a19e02') { transitive = false }
include('com.seedfinding:mc_core:d685a37f0a466d4bf800e7f285daf9ef73c81678') { transitive = false }
include('com.seedfinding:mc_noise:a6ab8e6c688491829f8d2adf845392da22ef8e9c') { transitive = false }
include('com.seedfinding:mc_biome:b2271807a047bb43ac60c8c20ad47e315f19b9a6') { transitive = false }
include('com.seedfinding:mc_terrain:9e937ddb838e28e79423c287fa18b1ce66f061d7') { transitive = false }
include('com.seedfinding:mc_feature:c29fd1fcd746e14c1bcdb127da3113ba273db1fd') { transitive = false }
include('com.seedfinding:mc_reversal:ca64c0890c106f1a2207623c316fce86f250b918') { transitive = false }
include('com.seedfinding:latticg:1.06')
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(AbstractArchiveTask) {
reproducibleFileOrder = true
preserveFileTimestamps = false
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(Jar) {
from "LICENSE.txt"
from sourceSets.api.output
}
task apiJar(type: Jar) {
classifier "api-dev"
from sourceSets.api.output
}
task remapApiJar(type: RemapJarTask) {
classifier "api"
input = apiJar.archiveFile.get().asFile
addNestedDependencies = false
}
prepareRemapApiJar.dependsOn(apiJar)
publishing {
publications {
def configurePom = {
packaging 'jar'
inceptionYear = '2021'
licenses {
license {
name = 'MIT'
url = 'https://github.com/19MisterX98/SeedcrackerX/blob/master/LICENSE.md'
}
}
url = 'https://github.com/19MisterX98/SeedcrackerX'
issueManagement {
url = 'https://github.com/19MisterX98/SeedcrackerX/issues'
}
scm {
url = 'https://github.com/19MisterX98/SeedcrackerX'
}
developers {
developer {
name = 'MisterX'
id = '19MisterX98'
}
developer {
name = 'Kap'
id = 'KaptainWutax'
}
}
}
mod(MavenPublication) {
artifactId 'seedcrackerx'
artifact(remapJar) {
builtBy remapJar
}
pom configurePom
pom.name = 'seedcrackerx'
pom.description = 'The seedcrackerx mod JAR'
}
api(MavenPublication) {
artifactId 'seedcrackerx-api'
artifact(remapApiJar) {
builtBy remapApiJar
classifier = ''
}
pom configurePom
pom.name = 'seedcrackerx-api'
pom.description = 'The seedcrackerx API'
}
}
repositories {
maven {
def releasesRepoUrl = "https://jitpack.io/com/github/19MisterX98/SeedcrackerX/latest"
def snapshotsRepoUrl = "https://jitpack.io/com/github/19MisterX98/SeedcrackerX/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
build.dependsOn remapApiJar