File tree Expand file tree Collapse file tree 12 files changed +592
-0
lines changed
java/io/github/md5sha256/SmartMapLoader Expand file tree Collapse file tree 12 files changed +592
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Gradle Build
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Set up JDK 21
19+ uses : actions/setup-java@v4
20+ with :
21+ java-version : ' 21'
22+ distribution : ' temurin'
23+ cache : ' gradle'
24+
25+ - name : Grant execute permission for gradlew
26+ run : chmod +x gradlew
27+
28+ - name : Build with Gradle
29+ run : ./gradlew build --no-daemon
30+
31+ - name : Upload build artifacts
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : jar-artifact
35+ path : build/libs/*.jar
36+
Original file line number Diff line number Diff line change 1+ # Gradle
2+ .gradle /
3+ build /
4+ ! gradle /wrapper /gradle-wrapper.jar
5+ ! gradle /wrapper /gradle-wrapper.properties
6+
7+ # Java
8+ * .class
9+ * .jar
10+ * .war
11+ * .nar
12+ * .ear
13+ * .zip
14+ * .tar.gz
15+ * .rar
16+ hs_err_pid *
17+ replay_pid *
18+
19+ # IDE - IntelliJ IDEA
20+ .idea /
21+ * .iws
22+ * .iml
23+ * .ipr
24+ out /
25+
26+ # IDE - Eclipse
27+ .classpath
28+ .project
29+ .settings /
30+ bin /
31+
32+ # IDE - VS Code
33+ .vscode /
34+ * .code-workspace
35+
36+ # IDE - NetBeans
37+ nbproject /
38+ nbbuild /
39+ dist /
40+ nbdist /
41+ .nb-gradle /
42+
43+ # OS
44+ .DS_Store
45+ .DS_Store ?
46+ ._ *
47+ .Spotlight-V100
48+ .Trashes
49+ ehthumbs.db
50+ Thumbs.db
51+ Desktop.ini
52+
53+ # Logs
54+ * .log
55+ logs /
56+
57+ # Temporary files
58+ * .tmp
59+ * .bak
60+ * .swp
61+ * ~.nib
62+ * .orig
63+
Original file line number Diff line number Diff line change 1+ # SmartMapLoader
2+
3+ A Paper plugin that optimizes map rendering by sending map data to players when chunks load or item frames are shown.
4+
5+ ## Building
6+
7+ This project uses Gradle. To build:
8+
9+ 1 . Initialize the Gradle wrapper (if not already present):
10+ ``` bash
11+ gradle wrapper
12+ ```
13+
14+ 2 . Build the plugin:
15+ ``` bash
16+ ./gradlew build
17+ ```
18+
19+ 3 . The compiled JAR will be in ` build/libs/SmartMapLoader-1.0.jar `
20+
21+ ## Requirements
22+
23+ - Java 21
24+ - Paper 1.21+
Original file line number Diff line number Diff line change 1+ plugins {
2+ java
3+ id(" io.papermc.paperweight.userdev" ) version " 1.7.2"
4+ id(" xyz.jpenilla.run-paper" ) version " 2.3.1"
5+ }
6+
7+ group = " io.github.md5sha256"
8+ version = " 1.0"
9+ description = " SmartMapLoader"
10+
11+ java {
12+ toolchain.languageVersion.set(JavaLanguageVersion .of(21 ))
13+ }
14+
15+ repositories {
16+ mavenCentral()
17+ maven(" https://repo.papermc.io/repository/maven-public/" )
18+ }
19+
20+ dependencies {
21+ paperweight.paperDevBundle(" 1.21-R0.1-SNAPSHOT" )
22+ }
23+
24+ tasks {
25+ compileJava {
26+ options.encoding = Charsets .UTF_8 .name()
27+ options.release.set(21 )
28+ }
29+
30+ processResources {
31+ filteringCharset = Charsets .UTF_8 .name()
32+ filesMatching(" plugin.yml" ) {
33+ expand(project.properties)
34+ }
35+ }
36+
37+ jar {
38+ archiveFileName.set(" ${project.name} -${project.version} .jar" )
39+ }
40+ }
41+
Original file line number Diff line number Diff line change 1+ distributionBase =GRADLE_USER_HOME
2+ distributionPath =wrapper/dists
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
4+ networkTimeout =10000
5+ validateDistributionUrl =true
6+ zipStoreBase =GRADLE_USER_HOME
7+ zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments