@@ -40,21 +40,11 @@ minecraft {
4040 runs {
4141 client {
4242 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.
4943 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
5444 property ' forge.logging.console.level' , ' debug'
5545
5646 mods {
57- randomspawn2 {
47+ datmoddingapi {
5848 source sourceSets. main
5949 }
6050 }
@@ -94,4 +84,31 @@ dependencies {
9484 minecraft ' net.minecraftforge:forge:1.12.2-14.23.5.2855'
9585}
9686
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+
97114jar. finalizedBy(' reobfJar' )
0 commit comments