Skip to content

Commit ec8b55f

Browse files
committed
0.1-BETA
1 parent af54456 commit ec8b55f

File tree

17 files changed

+1258
-121
lines changed

17 files changed

+1258
-121
lines changed

.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/

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# gradle
2+
3+
.gradle/
4+
build/
5+
out/
6+
classes/
7+
8+
# eclipse
9+
10+
*.launch
11+
12+
# idea
13+
14+
.idea/
15+
*.iml
16+
*.ipr
17+
*.iws
18+
19+
# vscode
20+
21+
.settings/
22+
.vscode/
23+
bin/
24+
.classpath
25+
.project
26+
27+
# macos
28+
29+
*.DS_Store
30+
31+
# fabric
32+
33+
run/
34+
35+
# java
36+
37+
hs_err_*.log
38+
replay_*.log
39+
*.hprof
40+
*.jfr
41+
42+
# Not yet
43+
44+
src/main/java/net/bichal/translucent_window/TranslucentWindowConfigScreen.java

LICENSE

Lines changed: 407 additions & 121 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
plugins {
2+
id 'fabric-loom' version '1.10-SNAPSHOT'
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+
}
15+
16+
dependencies {
17+
minecraft "net.minecraft:minecraft:${project.minecraft_version}"
18+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
19+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
20+
21+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
22+
23+
modImplementation "net.java.dev.jna:jna:5.17.0"
24+
}
25+
26+
processResources {
27+
inputs.property "version", project.version
28+
29+
filesMatching("fabric.mod.json") {
30+
expand "version": inputs.properties.version
31+
}
32+
}
33+
34+
tasks.withType(JavaCompile).configureEach {
35+
it.options.release = 21
36+
}
37+
38+
java {
39+
withSourcesJar()
40+
41+
sourceCompatibility = JavaVersion.VERSION_21
42+
targetCompatibility = JavaVersion.VERSION_21
43+
}
44+
45+
jar {
46+
inputs.property "archivesName", project.base.archivesName
47+
48+
from("LICENSE") {
49+
rename { "${it}_${inputs.properties.archivesName}" }
50+
}
51+
}
52+
53+
publishing {
54+
publications {
55+
create("mavenJava", MavenPublication) {
56+
artifactId = project.archives_base_name
57+
from components.java
58+
}
59+
}
60+
61+
repositories {
62+
}
63+
}

gradle.properties

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
org.gradle.jvmargs=-Xmx2G
2+
org.gradle.parallel=true
3+
4+
# Fabric Properties
5+
minecraft_version=1.21
6+
yarn_mappings=1.21+build.9
7+
loader_version=0.16.10
8+
9+
# Mod Properties
10+
mod_version=0.1-BETA
11+
maven_group=net.bichal.translucent_window
12+
archives_base_name=translucent-window
13+
14+
# Dependencies
15+
fabric_version=0.102.0+1.21

gradle/wrapper/gradle-wrapper.jar

42.6 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.12.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)