1
1
buildscript {
2
2
repositories {
3
- maven { url = ' https://files.minecraftforge.net/maven ' }
4
- jcenter()
3
+ // These repositories are only for Gradle plugins, put any other repositories in the repository block further below
4
+ maven { url = ' https://maven.minecraftforge.net ' }
5
5
mavenCentral()
6
6
}
7
7
dependencies {
8
- classpath group : ' net.minecraftforge.gradle' , name : ' ForgeGradle' , version : ' 3 .+' , changing : true
8
+ classpath group : ' net.minecraftforge.gradle' , name : ' ForgeGradle' , version : ' 5.1 .+' , changing : true
9
9
}
10
10
}
11
-
12
11
apply plugin : ' net.minecraftforge.gradle'
13
- // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
14
12
15
- version = " 1.2.1"
16
- group = " com.demmodders.datmoddingapi" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
17
- archivesBaseName = " datmoddingapi"
13
+ version = " 1.3.0"
14
+ group = " com.demmodders" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
18
15
19
- sourceCompatibility = targetCompatibility = compileJava. sourceCompatibility = compileJava. targetCompatibility = ' 1.8'
16
+ java {
17
+ archivesBaseName = " datmoddingapi"
18
+ toolchain. languageVersion = JavaLanguageVersion . of(8 )
19
+ }
20
20
21
21
minecraft {
22
- // The mappings can be changed at any time, and must be in the following format.
23
- // snapshot_YYYYMMDD Snapshot are built nightly.
24
- // stable_# Stables are built at the discretion of the MCP team.
25
- // Use non-default mappings at your own risk. they may not always work.
22
+ // The mappings can be changed at any time and must be in the following format.
23
+ // Channel: Version:
24
+ // snapshot YYYYMMDD Snapshot are built nightly.
25
+ // stable # Stables are built at the discretion of the MCP team.
26
+ // official MCVersion Official field/method names from Mojang mapping files
27
+ //
28
+ // You must be aware of the Mojang license when using the 'official' mappings.
29
+ // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
30
+ //
31
+ // Use non-default mappings at your own risk. They may not always work.
26
32
// Simply re-run your setup task after changing the mappings to update your workspace.
27
33
mappings channel : ' stable' , version : ' 39-1.12'
28
- // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
29
34
30
35
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
31
36
@@ -36,13 +41,19 @@ minecraft {
36
41
workingDirectory project. file(' run' )
37
42
38
43
// Recommended logging data for a userdev environment
39
- property ' forge.logging.markers' , ' SCAN,REGISTRIES,REGISTRYDUMP'
44
+ // The markers can be added/removed as needed separated by commas.
45
+ // "SCAN": For mods scan.
46
+ // "REGISTRIES": For firing of registry events.
47
+ // "REGISTRYDUMP": For getting the contents of all registries.
48
+ property ' forge.logging.markers' , ' REGISTRIES'
40
49
41
50
// Recommended logging level for the console
51
+ // You can set various levels here.
52
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
42
53
property ' forge.logging.console.level' , ' debug'
43
54
44
55
mods {
45
- datannouncements {
56
+ randomspawn2 {
46
57
source sourceSets. main
47
58
}
48
59
}
@@ -52,30 +63,34 @@ minecraft {
52
63
workingDirectory project. file(' run' )
53
64
54
65
// Recommended logging data for a userdev environment
55
- property ' forge.logging.markers' , ' SCAN,REGISTRIES,REGISTRYDUMP'
66
+ // The markers can be added/removed as needed separated by commas.
67
+ // "SCAN": For mods scan.
68
+ // "REGISTRIES": For firing of registry events.
69
+ // "REGISTRYDUMP": For getting the contents of all registries.
70
+ property ' forge.logging.markers' , ' REGISTRIES'
56
71
57
72
// Recommended logging level for the console
73
+ // You can set various levels here.
74
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
58
75
property ' forge.logging.console.level' , ' debug'
59
76
60
77
mods {
61
- datannouncements {
78
+ randomspawn2 {
62
79
source sourceSets. main
63
80
}
64
81
}
65
82
}
66
83
}
67
84
}
68
85
86
+ // Include resources generated by data generators.
87
+ sourceSets. main. resources { srcDir ' src/generated/resources' }
88
+
69
89
dependencies {
70
90
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
71
91
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
72
92
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
73
- minecraft ' net.minecraftforge:forge:1.12.2-14.23.5.2854'
74
-
75
- // for more info...
76
- // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
77
- // http://www.gradle.org/docs/current/userguide/dependency_management.html
78
-
93
+ minecraft ' net.minecraftforge:forge:1.12.2-14.23.5.2855'
79
94
}
80
95
81
96
jar. finalizedBy(' reobfJar' )
0 commit comments