@@ -40,21 +40,11 @@ minecraft {
40
40
runs {
41
41
client {
42
42
workingDirectory project. file(' run' )
43
-
44
- // Recommended logging data for a userdev environment
45
- // The markers can be added/removed as needed separated by commas.
46
- // "SCAN": For mods scan.
47
- // "REGISTRIES": For firing of registry events.
48
- // "REGISTRYDUMP": For getting the contents of all registries.
49
43
property ' forge.logging.markers' , ' REGISTRIES'
50
-
51
- // Recommended logging level for the console
52
- // You can set various levels here.
53
- // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
54
44
property ' forge.logging.console.level' , ' debug'
55
45
56
46
mods {
57
- randomspawn2 {
47
+ datmoddingapi {
58
48
source sourceSets. main
59
49
}
60
50
}
@@ -94,4 +84,31 @@ dependencies {
94
84
minecraft ' net.minecraftforge:forge:1.12.2-14.23.5.2855'
95
85
}
96
86
87
+ // Example for how to get properties into the manifest for reading at runtime.
88
+ jar {
89
+ manifest {
90
+ attributes([
91
+ " Specification-Title" : " datmoddingapi" ,
92
+ " Specification-Vendor" : " jtljac" ,
93
+ " Specification-Version" : " 1" , // We are version 1 of ourselves
94
+ " Implementation-Title" : project. name,
95
+ " Implementation-Version" : project. jar. archiveVersion,
96
+ " Implementation-Vendor" : " jtljac" ,
97
+ " Implementation-Timestamp" : new Date (). format(" yyyy-MM-dd'T'HH:mm:ssZ" )
98
+ ])
99
+ }
100
+ }
101
+
102
+ publishing {
103
+ publications {
104
+ mavenJava(MavenPublication ) {
105
+ groupId = group
106
+ artifactId = archivesBaseName
107
+ version = version
108
+
109
+ from components. java
110
+ }
111
+ }
112
+ }
113
+
97
114
jar. finalizedBy(' reobfJar' )
0 commit comments