Skip to content

Commit 5a1e7a5

Browse files
committed
Base project sources uploaded.
1 parent 870d697 commit 5a1e7a5

File tree

10 files changed

+730
-0
lines changed

10 files changed

+730
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.gradle text diff=Groovy
2+
*.gradle linguist-language=Groovy

.gitignore

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.settings
5+
.metadata
6+
.classpath
7+
.project
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
# other
21+
eclipse
22+
run
23+
24+
# Files from Forge MDK
25+
forge*changelog.txt
26+
27+
# Compiled class file
28+
*.class
29+
30+
# Log file
31+
*.log
32+
33+
# BlueJ files
34+
*.ctxt
35+
36+
# Mobile Tools for Java (J2ME)
37+
.mtj.tmp/
38+
39+
# Package Files #
40+
*.jar
41+
*.war
42+
*.nar
43+
*.ear
44+
*.zip
45+
*.tar.gz
46+
*.rar
47+
48+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
49+
hs_err_pid*
50+
51+
### Gradle ###
52+
.gradle
53+
build/
54+
55+
# Ignore Gradle GUI config
56+
gradle-app.setting
57+
58+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
59+
!gradle-wrapper.jar
60+
61+
# Cache of project
62+
.gradletasknamecache
63+
64+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
65+
# gradle/wrapper/gradle-wrapper.properties
66+
67+
### Gradle Patch ###
68+
**/build/
69+
70+
# End of https://www.gitignore.io/api/gradle
71+
72+
# Ignore Gradle GUI config
73+
gradle-app.setting
74+
75+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
76+
!gradle-wrapper.jar
77+
78+
# Cache of project
79+
.gradletasknamecache
80+
81+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
82+
# gradle/wrapper/gradle-wrapper.properties
83+
84+
# Created by https://www.gitignore.io/api/intellij
85+
# Edit at https://www.gitignore.io/?templates=intellij
86+
87+
### Intellij ###
88+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
89+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
90+
91+
# User-specific stuff
92+
.idea/**/workspace.xml
93+
.idea/**/tasks.xml
94+
.idea/**/usage.statistics.xml
95+
.idea/**/dictionaries
96+
.idea/**/shelf
97+
98+
# Generated files
99+
.idea/**/contentModel.xml
100+
101+
# Sensitive or high-churn files
102+
.idea/**/dataSources/
103+
.idea/**/dataSources.ids
104+
.idea/**/dataSources.local.xml
105+
.idea/**/sqlDataSources.xml
106+
.idea/**/dynamic.xml
107+
.idea/**/uiDesigner.xml
108+
.idea/**/dbnavigator.xml
109+
110+
# Gradle
111+
.idea/**/gradle.xml
112+
.idea/**/libraries
113+
114+
# Gradle and Maven with auto-import
115+
# When using Gradle or Maven with auto-import, you should exclude module files,
116+
# since they will be recreated, and may cause churn. Uncomment if using
117+
# auto-import.
118+
# .idea/modules.xml
119+
# .idea/*.iml
120+
# .idea/modules
121+
122+
# CMake
123+
cmake-build-*/
124+
125+
# Mongo Explorer plugin
126+
.idea/**/mongoSettings.xml
127+
128+
# File-based project format
129+
*.iws
130+
131+
# IntelliJ
132+
out/
133+
run/
134+
run-client/
135+
run-server/
136+
137+
# mpeltonen/sbt-idea plugin
138+
.idea_modules/
139+
140+
# JIRA plugin
141+
atlassian-ide-plugin.xml
142+
143+
# Cursive Clojure plugin
144+
.idea/replstate.xml
145+
146+
# Crashlytics plugin (for Android Studio and IntelliJ)
147+
com_crashlytics_export_strings.xml
148+
crashlytics.properties
149+
crashlytics-build.properties
150+
fabric.properties
151+
152+
# Editor-based Rest Client
153+
.idea/httpRequests
154+
155+
# Android studio 3.1+ serialized cache file
156+
.idea/caches/build_file_checksums.ser
157+
158+
### Intellij Patch ###
159+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
160+
161+
# *.iml
162+
# modules.xml
163+
# .idea/misc.xml
164+
# *.ipr
165+
166+
# Sonarlint plugin
167+
.idea/sonarlint

build.gradle

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
buildscript {
2+
repositories {
3+
maven { url = 'https://files.minecraftforge.net/maven' }
4+
jcenter()
5+
mavenCentral()
6+
}
7+
dependencies {
8+
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
9+
}
10+
}
11+
apply plugin: 'net.minecraftforge.gradle'
12+
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
13+
apply plugin: 'eclipse'
14+
apply plugin: 'maven-publish'
15+
16+
version = '1.0'
17+
group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
18+
archivesBaseName = 'modid'
19+
20+
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
21+
22+
minecraft {
23+
// 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.
26+
// Use non-default mappings at your own risk. they may not always work.
27+
// Simply re-run your setup task after changing the mappings to update your workspace.
28+
mappings channel: 'snapshot', version: '20190719-1.14.3'
29+
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
30+
31+
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
32+
33+
// Default run configurations.
34+
// These can be tweaked, removed, or duplicated as needed.
35+
runs {
36+
client {
37+
workingDirectory project.file('run')
38+
39+
// Recommended logging data for a userdev environment
40+
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
41+
42+
// Recommended logging level for the console
43+
property 'forge.logging.console.level', 'debug'
44+
45+
mods {
46+
examplemod {
47+
source sourceSets.main
48+
}
49+
}
50+
}
51+
52+
server {
53+
workingDirectory project.file('run')
54+
55+
// Recommended logging data for a userdev environment
56+
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
57+
58+
// Recommended logging level for the console
59+
property 'forge.logging.console.level', 'debug'
60+
61+
mods {
62+
examplemod {
63+
source sourceSets.main
64+
}
65+
}
66+
}
67+
68+
data {
69+
workingDirectory project.file('run')
70+
71+
// Recommended logging data for a userdev environment
72+
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
73+
74+
// Recommended logging level for the console
75+
property 'forge.logging.console.level', 'debug'
76+
77+
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/')
78+
79+
mods {
80+
examplemod {
81+
source sourceSets.main
82+
}
83+
}
84+
}
85+
}
86+
}
87+
88+
dependencies {
89+
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
90+
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
91+
// 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.73'
93+
94+
// You may put jars on which you depend on in ./libs or you may define them like so..
95+
// compile "some.group:artifact:version:classifier"
96+
// compile "some.group:artifact:version"
97+
98+
// Real examples
99+
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
100+
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
101+
102+
// The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
103+
// provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
104+
105+
// These dependencies get remapped to your current MCP mappings
106+
// deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
107+
108+
// For more info...
109+
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
110+
// http://www.gradle.org/docs/current/userguide/dependency_management.html
111+
112+
}
113+
114+
// Example for how to get properties into the manifest for reading by the runtime..
115+
jar {
116+
manifest {
117+
attributes([
118+
"Specification-Title": "examplemod",
119+
"Specification-Vendor": "examplemodsareus",
120+
"Specification-Version": "1", // We are version 1 of ourselves
121+
"Implementation-Title": project.name,
122+
"Implementation-Version": "${version}",
123+
"Implementation-Vendor" :"examplemodsareus",
124+
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
125+
])
126+
}
127+
}
128+
129+
// 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+
}
138+
publishing {
139+
publications {
140+
mavenJava(MavenPublication) {
141+
artifact reobfArtifact
142+
}
143+
}
144+
repositories {
145+
maven {
146+
url "file:///${project.projectDir}/mcmodsrepo"
147+
}
148+
}
149+
}

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
2+
# This is required to provide enough memory for the Minecraft decompilation process.
3+
org.gradle.jvmargs=-Xmx3G
4+
org.gradle.daemon=false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
zipStoreBase=GRADLE_USER_HOME
4+
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip

0 commit comments

Comments
 (0)