Skip to content

Commit 16951b0

Browse files
committed
Add generate circle
1 parent 74ec4a5 commit 16951b0

21 files changed

Lines changed: 854 additions & 0 deletions

File tree

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Automatically build the project and run any configured tests for every push
2+
# and submitted pull request. This can help catch issues that only occur on
3+
# certain platforms or Java versions, and provides a first line of defence
4+
# against bad commits.
5+
6+
name: build
7+
on: [pull_request, push]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: checkout repository
14+
uses: actions/checkout@v4
15+
- name: validate gradle wrapper
16+
uses: gradle/actions/wrapper-validation@v4
17+
- name: setup jdk
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '21'
21+
distribution: 'microsoft'
22+
- name: make gradle wrapper executable
23+
run: chmod +x ./gradlew
24+
- name: build
25+
run: ./gradlew build
26+
- name: capture build artifacts
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: Artifacts
30+
path: build/libs/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 RechkinDenis
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

build.gradle

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
plugins {
2+
id 'fabric-loom' version "${loom_version}"
3+
id 'maven-publish'
4+
}
5+
6+
version = project.mod_version
7+
group = project.maven_group
8+
9+
base {
10+
archivesName = project.archives_base_name
11+
}
12+
13+
repositories {
14+
// Add repositories to retrieve artifacts from in here.
15+
// You should only use this when depending on other mods because
16+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
17+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
18+
// for more information about repositories.
19+
}
20+
21+
loom {
22+
splitEnvironmentSourceSets()
23+
24+
mods {
25+
"litematic-generator" {
26+
sourceSet sourceSets.main
27+
sourceSet sourceSets.client
28+
}
29+
}
30+
31+
}
32+
33+
dependencies {
34+
// To change the versions see the gradle.properties file
35+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
36+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
37+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
38+
39+
// Fabric API. This is technically optional, but you probably want it anyway.
40+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
41+
42+
}
43+
44+
processResources {
45+
inputs.property "version", project.version
46+
47+
filesMatching("fabric.mod.json") {
48+
expand "version": inputs.properties.version
49+
}
50+
}
51+
52+
tasks.withType(JavaCompile).configureEach {
53+
it.options.release = 21
54+
}
55+
56+
java {
57+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
58+
// if it is present.
59+
// If you remove this line, sources will not be generated.
60+
withSourcesJar()
61+
62+
sourceCompatibility = JavaVersion.VERSION_21
63+
targetCompatibility = JavaVersion.VERSION_21
64+
}
65+
66+
jar {
67+
inputs.property "archivesName", project.base.archivesName
68+
69+
from("LICENSE") {
70+
rename { "${it}_${inputs.properties.archivesName}"}
71+
}
72+
}
73+
74+
// configure the maven publication
75+
publishing {
76+
publications {
77+
create("mavenJava", MavenPublication) {
78+
artifactId = project.archives_base_name
79+
from components.java
80+
}
81+
}
82+
83+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
84+
repositories {
85+
// Add repositories to publish to here.
86+
// Notice: This block does NOT have the same function as the block in the top level.
87+
// The repositories here will be used for publishing your artifact, not for
88+
// retrieving dependencies.
89+
}
90+
}

gradle.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
org.gradle.parallel=true
4+
5+
# Fabric Properties
6+
# check these on https://fabricmc.net/develop
7+
minecraft_version=1.21.6
8+
yarn_mappings=1.21.6+build.1
9+
loader_version=0.16.14
10+
loom_version=1.11-SNAPSHOT
11+
12+
# Mod Properties
13+
mod_version=1.0.0
14+
maven_group=com.tpexcotblu.litematicgen
15+
archives_base_name=litematic-generator
16+
17+
# Dependencies
18+
fabric_version=0.128.2+1.21.6

gradle/wrapper/gradle-wrapper.jar

42.7 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)