-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (42 loc) · 1.33 KB
/
build.gradle
File metadata and controls
54 lines (42 loc) · 1.33 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
plugins {
id 'java-library'
id 'maven-publish'
id 'eclipse'
}
version = modVersion //To change the version of your mod, edit modVersion in gradle.properties
group = "com.wildermods"
base.archivesName = "examplemod"
apply plugin: 'com.wildermods.workspace'
apply from: 'replaceTokenScript.gradle' //see replaceTokenScript.gradle!
apply from: 'publishScript.gradle' //If you're not going to publish to a maven repository, you can delete this line and delete publishScript.gradle.
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://maven.wildermods.com/" //The Wilderforge API is located in a custom maven repository
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
wilderWorkspace {
useDependency("1.16+560-unstable")
}
dependencies {
/*
* Add any dependencies you need here. In this example mod, we depend on wilderforge
*
* To add libraries or to change the versions used, you need to modify /gradle/libs.versions.toml
*/
implementation libs.wilderforge
/**********
Don't alter the dependencies below.
It allows the buildscript to recognize the base game.
***********/
//Wildermyth, Scratchpad
compileOnly fileTree(dir: './bin/', include: ['*.jar'])
//All dependencies of Wildermyth itself
compileOnly fileTree(dir: './bin/lib/', include: ['*.jar'])
}