Skip to content

Commit 8cabe03

Browse files
committed
stonebound 1.16
1 parent 93deb38 commit 8cabe03

11 files changed

Lines changed: 198 additions & 146 deletions

File tree

build.gradle

Lines changed: 59 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
11
buildscript {
22
repositories {
3-
maven { url = 'https://files.minecraftforge.net/maven' }
4-
jcenter()
3+
maven { url = 'https://maven.minecraftforge.net' }
54
mavenCentral()
65
}
76
dependencies {
8-
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
7+
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
98
}
109
}
1110
apply plugin: 'net.minecraftforge.gradle'
1211
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
1312
apply plugin: 'eclipse'
1413
apply plugin: 'maven-publish'
1514

16-
version = '1.0'
15+
version = '1.3.0'
1716
group = 'simpleircbridge' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1817
archivesBaseName = 'simpleircbridge'
1918

20-
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
19+
java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.
2120

21+
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
2222
minecraft {
2323
// The mappings can be changed at any time, and must be in the following format.
24-
// snapshot_YYYYMMDD Snapshot are built nightly.
25-
// stable_# Stables are built at the discretion of the MCP team.
24+
// Channel: Version:
25+
// snapshot YYYYMMDD Snapshot are built nightly.
26+
// stable # Stables are built at the discretion of the MCP team.
27+
// official MCVersion Official field/method names from Mojang mapping files
28+
//
29+
// You must be aware of the Mojang license when using the 'official' mappings.
30+
// See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
31+
//
2632
// Use non-default mappings at your own risk. they may not always work.
2733
// Simply re-run your setup task after changing the mappings to update your workspace.
28-
mappings channel: 'snapshot', version: '20190719-1.14.3'
34+
mappings channel: 'official', version: '1.16.5'
2935
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
30-
36+
3137
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
3238

3339
// Default run configurations.
@@ -37,13 +43,19 @@ minecraft {
3743
workingDirectory project.file('run')
3844

3945
// Recommended logging data for a userdev environment
40-
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
46+
// The markers can be changed as needed.
47+
// "SCAN": For mods scan.
48+
// "REGISTRIES": For firing of registry events.
49+
// "REGISTRYDUMP": For getting the contents of all registries.
50+
property 'forge.logging.markers', 'REGISTRIES'
4151

4252
// Recommended logging level for the console
53+
// You can set various levels here.
54+
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
4355
property 'forge.logging.console.level', 'debug'
4456

4557
mods {
46-
examplemod {
58+
simpleircbridge {
4759
source sourceSets.main
4860
}
4961
}
@@ -53,13 +65,19 @@ minecraft {
5365
workingDirectory project.file('run')
5466

5567
// Recommended logging data for a userdev environment
56-
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
68+
// The markers can be changed as needed.
69+
// "SCAN": For mods scan.
70+
// "REGISTRIES": For firing of registry events.
71+
// "REGISTRYDUMP": For getting the contents of all registries.
72+
property 'forge.logging.markers', 'REGISTRIES'
5773

5874
// Recommended logging level for the console
75+
// You can set various levels here.
76+
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
5977
property 'forge.logging.console.level', 'debug'
6078

6179
mods {
62-
examplemod {
80+
simpleircbridge {
6381
source sourceSets.main
6482
}
6583
}
@@ -69,27 +87,37 @@ minecraft {
6987
workingDirectory project.file('run')
7088

7189
// Recommended logging data for a userdev environment
72-
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
90+
// The markers can be changed as needed.
91+
// "SCAN": For mods scan.
92+
// "REGISTRIES": For firing of registry events.
93+
// "REGISTRYDUMP": For getting the contents of all registries.
94+
property 'forge.logging.markers', 'REGISTRIES'
7395

7496
// Recommended logging level for the console
97+
// You can set various levels here.
98+
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
7599
property 'forge.logging.console.level', 'debug'
76100

77-
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/')
101+
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
102+
args '--mod', 'simpleircbridge', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
78103

79104
mods {
80-
examplemod {
105+
simpleircbridge {
81106
source sourceSets.main
82107
}
83108
}
84109
}
85110
}
86111
}
87112

113+
// Include resources generated by data generators.
114+
sourceSets.main.resources { srcDir 'src/generated/resources' }
115+
88116
dependencies {
89117
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
90118
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
91119
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
92-
minecraft 'net.minecraftforge:forge:1.14.4-28.0.49'
120+
minecraft 'net.minecraftforge:forge:1.16.5-36.2.0'
93121

94122
// You may put jars on which you depend on in ./libs or you may define them like so..
95123
// compile "some.group:artifact:version:classifier"
@@ -115,35 +143,32 @@ dependencies {
115143
jar {
116144
manifest {
117145
attributes([
118-
"Specification-Title": "simpleircbridge",
119-
"Specification-Vendor": "simpleircbridge",
120-
"Specification-Version": "1", // We are version 1 of ourselves
121-
"Implementation-Title": project.name,
122-
"Implementation-Version": "${version}",
123-
"Implementation-Vendor" :"simpleircbridge",
124-
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
146+
"Specification-Title": "simpleircbridge",
147+
"Specification-Vendor": "simpleircbridge",
148+
"Specification-Version": "1", // We are version 1 of ourselves
149+
"Implementation-Title": project.name,
150+
"Implementation-Version": "${version}",
151+
"Implementation-Vendor" :"simpleircbridge",
152+
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
125153
])
126154
}
127155
}
128156

129157
// Example configuration to allow publishing using the maven-publish task
130-
// we define a custom artifact that is sourced from the reobfJar output task
131-
// and then declare that to be published
132-
// Note you'll need to add a repository here
133-
def reobfFile = file("$buildDir/reobfJar/output.jar")
134-
def reobfArtifact = artifacts.add('default', reobfFile) {
135-
type 'jar'
136-
builtBy 'reobfJar'
137-
}
158+
// This is the preferred method to reobfuscate your jar file
159+
jar.finalizedBy('reobfJar')
160+
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
161+
//publish.dependsOn('reobfJar')
162+
138163
publishing {
139164
publications {
140165
mavenJava(MavenPublication) {
141-
artifact reobfArtifact
166+
artifact jar
142167
}
143168
}
144169
repositories {
145170
maven {
146171
url "file:///${project.projectDir}/mcmodsrepo"
147172
}
148173
}
149-
}
174+
}

gradle/wrapper/gradle-wrapper.jar

4.39 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip

gradlew

Lines changed: 33 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 24 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)