Skip to content

Commit b6ca8d3

Browse files
committed
Restructured project
1 parent 2f45f2d commit b6ca8d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+418
-935
lines changed

.gitignore

+10-116
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,12 @@
1-
# User-specific stuff
2-
.idea/
3-
4-
*.iml
5-
*.ipr
6-
*.iws
7-
8-
# IntelliJ
9-
out/
10-
# mpeltonen/sbt-idea plugin
11-
.idea_modules/
12-
13-
# JIRA plugin
14-
atlassian-ide-plugin.xml
15-
16-
# Compiled class file
17-
*.class
18-
19-
# Log file
20-
*.log
21-
22-
# BlueJ files
23-
*.ctxt
24-
25-
# Package Files #
26-
*.jar
27-
*.war
28-
*.nar
29-
*.ear
30-
*.zip
31-
*.tar.gz
32-
*.rar
33-
34-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
35-
hs_err_pid*
36-
37-
*~
38-
39-
# temporary files which can be created if a process still has a handle open of a deleted file
40-
.fuse_hidden*
41-
42-
# KDE directory preferences
43-
.directory
44-
45-
# Linux trash folder which might appear on any partition or disk
46-
.Trash-*
47-
48-
# .nfs files are created when an open file is removed but is still being accessed
49-
.nfs*
50-
51-
# General
52-
.DS_Store
53-
.AppleDouble
54-
.LSOverride
55-
56-
# Icon must end with two \r
57-
Icon
58-
59-
# Thumbnails
60-
._*
61-
62-
# Files that might appear in the root of a volume
63-
.DocumentRevisions-V100
64-
.fseventsd
65-
.Spotlight-V100
66-
.TemporaryItems
67-
.Trashes
68-
.VolumeIcon.icns
69-
.com.apple.timemachine.donotpresent
70-
71-
# Directories potentially created on remote AFP share
72-
.AppleDB
73-
.AppleDesktop
74-
Network Trash Folder
75-
Temporary Items
76-
.apdisk
77-
78-
# Windows thumbnail cache files
79-
Thumbs.db
80-
Thumbs.db:encryptable
81-
ehthumbs.db
82-
ehthumbs_vista.db
83-
84-
# Dump file
85-
*.stackdump
86-
87-
# Folder config file
88-
[Dd]esktop.ini
89-
90-
# Recycle Bin used on file shares
91-
$RECYCLE.BIN/
92-
93-
# Windows Installer files
94-
*.cab
95-
*.msi
96-
*.msix
97-
*.msm
98-
*.msp
99-
100-
# Windows shortcuts
101-
*.lnk
102-
103-
.gradle
1+
.idea
2+
RedBits.iml
3+
/1.19.3/.gradle/
4+
/1.19.3/build/
5+
/1.19.3/run/
6+
/common/.gradle/
7+
/common/build/
8+
/common/run/
9+
.gradle/
10410
build/
105-
106-
# Ignore Gradle GUI config
107-
gradle-app.setting
108-
109-
# Cache of project
110-
.gradletasknamecache
111-
112-
**/build/
113-
114-
# Common working directory
11511
run/
116-
117-
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
118-
!gradle-wrapper.jar
12+
versions/*.jar

1.20.2/build.gradle

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
plugins {
2+
id 'fabric-loom' version '1.5-SNAPSHOT'
3+
}
4+
5+
sourceCompatibility = JavaVersion.VERSION_17
6+
targetCompatibility = JavaVersion.VERSION_17
7+
8+
archivesBaseName = project.archives_base_name + "-" + project.minecraft_version
9+
version = project.mod_version
10+
group = project.maven_group
11+
12+
loom {
13+
runtimeOnlyLog4j = true
14+
}
15+
16+
repositories {
17+
18+
maven {
19+
name = 'TerraformersMC'
20+
url = 'https://maven.terraformersmc.com/'
21+
}
22+
23+
// interference
24+
maven {
25+
url = "https://api.modrinth.com/maven"
26+
}
27+
28+
mavenLocal()
29+
30+
}
31+
32+
runClient {
33+
34+
}
35+
36+
loom {
37+
runtimeOnlyLog4j = true
38+
}
39+
40+
dependencies {
41+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
42+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
43+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
44+
45+
// Fabric API
46+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
47+
48+
// Interference API
49+
modImplementation "maven.modrinth:interference:${project.interference_version}"
50+
include "maven.modrinth:interference:${project.interference_version}"
51+
52+
// JMXL
53+
modImplementation "maven.modrinth:JMXL:${project.jmxl_version}" transitive false
54+
include "maven.modrinth:JMXL:${project.jmxl_version}" transitive false
55+
56+
implementation rootProject
57+
}
58+
59+
processResources {
60+
inputs.property "version", project.version
61+
62+
filesMatching("fabric.mod.json") {
63+
expand (
64+
"version": project.version,
65+
"loader_version": project.loader_version
66+
)
67+
}
68+
}
69+
70+
tasks.withType(JavaCompile).configureEach {
71+
it.options.release = 17
72+
}
73+
74+
java {
75+
withSourcesJar()
76+
}
77+
78+
jar {
79+
from("LICENSE") {
80+
rename { "${it}_${project.archivesBaseName}"}
81+
}
82+
}

1.20.2/gradle.properties

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
minecraft_version=1.20.2
3+
yarn_mappings=1.20.2+build.4
4+
loader_version=0.14.22
5+
6+
# Dependencies
7+
fabric_version=0.89.3+1.20.2
8+
interference_version=1.8.0
9+
jmxl_version=1.4+mc1.20.4
222 Bytes
Loading
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"schemaVersion": 1,
3+
"id": "led",
4+
"version": "${version}",
5+
6+
"name": "Light Emitting Diode",
7+
"description": "A semiconductor that emits light when current flows through it.",
8+
9+
"icon": "assets/led/icon.png",
10+
"license": "MIT",
11+
"contact": {
12+
"homepage": "http://darktree.net/",
13+
"sources": "https://github.com/magistermaks/mod-led",
14+
"issues": "https://github.com/magistermaks/mod-led/issues"
15+
},
16+
17+
"environment": "*",
18+
"entrypoints": {
19+
"main": [
20+
"net.darktree.led.LED"
21+
],
22+
"client": [
23+
"net.darktree.led.LED"
24+
],
25+
"server": [
26+
"net.darktree.led.LED"
27+
]
28+
},
29+
30+
"mixins": [],
31+
32+
"depends": {
33+
"fabricloader": "*",
34+
"fabric": "*",
35+
"jmxl": ">=1.4",
36+
"interference": "1.8.x",
37+
"minecraft": ["1.20.2", "1.20.3", "1.20.4"]
38+
},
39+
40+
"authors": [
41+
"magistermaks"
42+
],
43+
44+
"contributors": [
45+
]
46+
}

build.gradle

+26-38
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.3-SNAPSHOT'
3-
id 'maven-publish'
4-
}
5-
6-
repositories {
7-
8-
// interference
9-
maven {
10-
allowInsecureProtocol = true
11-
url 'http://darktree.net/maven'
12-
}
13-
14-
maven {
15-
name = 'TerraformersMC'
16-
url = 'https://maven.terraformersmc.com/'
17-
}
18-
19-
mavenLocal()
20-
2+
id 'fabric-loom' version '1.5-SNAPSHOT'
213
}
224

235
sourceCompatibility = JavaVersion.VERSION_17
@@ -27,32 +9,38 @@ archivesBaseName = project.archives_base_name
279
version = project.mod_version
2810
group = project.maven_group
2911

30-
dependencies {
31-
// to change the versions see the gradle.properties file
32-
minecraft "com.mojang:minecraft:${project.minecraft_version}"
33-
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
34-
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
35-
36-
// Fabric API
37-
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
12+
loom {
13+
runtimeOnlyLog4j = true
14+
}
3815

39-
// Interference API
40-
modImplementation "net.darktree:interference:${project.interference_version}"
41-
include "net.darktree:interference:${project.interference_version}"
16+
dependencies {
17+
minecraft "com.mojang:minecraft:${project.base_minecraft_version}"
18+
mappings "net.fabricmc:yarn:${project.base_yarn_mappings}:v2"
4219

43-
// JMXL
44-
modImplementation "net.darktree:JMXL:${project.jmxl_version}" transitive false
45-
include "net.darktree:JMXL:${project.jmxl_version}"
20+
include project(path: ":1.20.2", configuration: "namedElements")
4621
}
4722

4823
processResources {
49-
inputs.property "version", project.version
24+
inputs.property "version", project.version
25+
26+
filesMatching("fabric.mod.json") {
27+
expand (
28+
"version": project.version,
29+
"loader_version": project.loader_version
30+
)
31+
}
32+
}
33+
34+
tasks.withType(JavaCompile).configureEach {
35+
it.options.release = 17
36+
}
5037

51-
filesMatching("fabric.mod.json") {
52-
expand "version": project.version
53-
}
38+
java {
39+
withSourcesJar()
5440
}
5541

5642
jar {
57-
from "LICENSE"
43+
from("LICENSE") {
44+
rename { "${it}_${project.archivesBaseName}"}
45+
}
5846
}

gradle.properties

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
# Done to increase the memory available to gradle.
2-
org.gradle.jvmargs=-Xmx2048M
2+
org.gradle.jvmargs=-Xmx16G
33

4-
# Fabric Properties
5-
minecraft_version=1.20.2
6-
yarn_mappings=1.20.2+build.4
7-
loader_version=0.14.22
4+
loader_version=0.14.21
5+
mod_version = 1.8.0
6+
maven_group = net.darktree
7+
archives_base_name = redbits
88

9-
# Mod Properties
10-
mod_version=1.7.0
11-
maven_group=net.darktree
12-
archives_base_name=led
13-
14-
# Dependencies
15-
interference_version=1.8.0
16-
fabric_version=0.89.3+1.20.2
17-
jmxl_version=1.4+mc1.20.2
9+
base_minecraft_version=1.20.2
10+
base_yarn_mappings=1.20.2+build.4

gradle/wrapper/gradle-wrapper.jar

4.36 KB
Binary file not shown.
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https://services.gradle.org/distributions/gradle-8.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
5-
zipStorePath=wrapper/dists
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)