Skip to content

Commit e2d0070

Browse files
committed
Initial commit
0 parents  commit e2d0070

File tree

25 files changed

+1279
-0
lines changed

25 files changed

+1279
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: gradle # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: weekly

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
jobs:
4+
build:
5+
name: Build
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: write
9+
steps:
10+
- name: Checkout Repository
11+
uses: actions/checkout@v4
12+
13+
- uses: actions/setup-java@v4
14+
with:
15+
distribution: temurin
16+
java-version: 21
17+
cache: gradle
18+
19+
- name: Setup Gradle
20+
uses: gradle/actions/setup-gradle@v3
21+
with:
22+
cache-read-only: false
23+
24+
- name: Execute Gradle build
25+
run: ./gradlew build
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Dependency Submission
2+
3+
on:
4+
push:
5+
branches: [ 'main' ]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
dependency-submission:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-java@v4
16+
with:
17+
distribution: temurin
18+
java-version: 21
19+
20+
- name: Generate and submit dependency graph
21+
uses: gradle/actions/dependency-submission@v3

.github/workflows/publish.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
on:
2+
push:
3+
tags: [ '[0-9]+.[0-9]+.[0-9]+' ]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: write
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-java@v4
12+
with:
13+
distribution: temurin
14+
java-version: 21
15+
cache: 'gradle'
16+
17+
- name: Setup Gradle
18+
uses: gradle/actions/setup-gradle@v4
19+
with:
20+
cache-read-only: false
21+
22+
- name: Execute Gradle build
23+
run: ./gradlew build
24+
25+
- name: Update CHANGELOG
26+
id: changelog
27+
uses: requarks/changelog-action@v1
28+
with:
29+
token: ${{ github.token }}
30+
tag: ${{ github.ref_name }}
31+
32+
- name: Upload jar
33+
uses: Kir-Antipov/mc-publish@v3.3.0
34+
with:
35+
changelog: ${{ steps.changelog.outputs.changes }}
36+
# Update these IDs after creating the project on Modrinth/CurseForge
37+
modrinth-id: column-quick-swap
38+
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
39+
40+
# curseforge-id: UPDATE_ME
41+
# curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
42+
43+
files: |
44+
build/libs/!(*-@(fabric|sources|dev)).jar
45+
build/libs/*-@(sources).jar
46+
47+
version: ${{ github.ref_name }}
48+
49+
loaders: |
50+
forge
51+
52+
game-versions: |
53+
1.20.1
54+
game-version-filter: releases
55+
56+
dependencies: |
57+
kotlin-for-forge
58+
59+
java: |
60+
17
61+
62+
- name: Commit CHANGELOG.md
63+
uses: stefanzweifel/git-auto-commit-action@v5
64+
with:
65+
branch: main
66+
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
67+
file_pattern: CHANGELOG.md

.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Kotlin ###
20+
.kotlin
21+
22+
### Eclipse ###
23+
.apt_generated
24+
.classpath
25+
.factorypath
26+
.project
27+
.settings
28+
.springBeans
29+
.sts4-cache
30+
bin/
31+
!**/src/main/**/bin/
32+
!**/src/test/**/bin/
33+
34+
### NetBeans ###
35+
/nbproject/private/
36+
/nbbuild/
37+
/dist/
38+
/nbdist/
39+
/.nb-gradle/
40+
41+
### VS Code ###
42+
.vscode/
43+
44+
### Mac OS ###
45+
.DS_Store
46+
47+
.profileconfig.json
48+
run/*

build.gradle.kts

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
import groovy.lang.Closure
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4+
5+
plugins {
6+
java
7+
alias(catalog.plugins.kotlin.jvm)
8+
alias(catalog.plugins.kotlin.plugin.serialization)
9+
10+
alias(catalog.plugins.git.version)
11+
12+
alias(catalog.plugins.unmined)
13+
}
14+
15+
val archive_name: String by rootProject.properties
16+
val id: String by rootProject.properties
17+
val name: String by rootProject.properties
18+
val author: String by rootProject.properties
19+
val description: String by rootProject.properties
20+
val source: String by rootProject.properties
21+
22+
group = "yarden_zamir.column_quick_swap"
23+
24+
val gitVersion: Closure<String> by extra
25+
version = gitVersion()
26+
27+
base {
28+
archivesName = archive_name
29+
}
30+
31+
java {
32+
toolchain {
33+
languageVersion = JavaLanguageVersion.of(17)
34+
}
35+
36+
sourceCompatibility = JavaVersion.VERSION_17
37+
targetCompatibility = JavaVersion.VERSION_17
38+
39+
withSourcesJar()
40+
}
41+
42+
repositories {
43+
mavenCentral()
44+
45+
maven("https://thedarkcolour.github.io/KotlinForForge/") {
46+
content { includeGroup("thedarkcolour") }
47+
}
48+
}
49+
50+
unimined.minecraft {
51+
version(catalog.versions.minecraft.get())
52+
53+
mappings {
54+
searge()
55+
mojmap()
56+
parchment(mcVersion = "1.20.1", version = "2023.09.03")
57+
58+
devFallbackNamespace("searge")
59+
}
60+
61+
minecraftForge {
62+
loader(catalog.versions.forge.get())
63+
}
64+
}
65+
66+
val minecraftLibraries by configurations
67+
68+
dependencies {
69+
implementation(kotlin("stdlib-jdk8"))
70+
71+
compileOnly(catalog.mixin)
72+
73+
implementation(catalog.kotlin.forge)
74+
75+
// macOS ARM native bridge for dev environment
76+
if (System.getProperty("os.name").contains("Mac")) {
77+
minecraftLibraries("ca.weblite:java-objc-bridge:1.1")
78+
}
79+
}
80+
81+
kotlin {
82+
jvmToolchain(17)
83+
}
84+
85+
tasks {
86+
withType<ProcessResources> {
87+
val properties = mapOf(
88+
"id" to id,
89+
"version" to rootProject.version,
90+
"group" to rootProject.group,
91+
"name" to rootProject.name,
92+
"description" to rootProject.property("description").toString(),
93+
"author" to rootProject.property("author").toString(),
94+
"source" to rootProject.property("source").toString()
95+
)
96+
from(rootProject.sourceSets.main.get().resources)
97+
inputs.properties(properties)
98+
99+
filesMatching(
100+
listOf(
101+
"META-INF/mods.toml",
102+
"META-INF/MANIFEST.MF"
103+
)
104+
) {
105+
expand(properties)
106+
}
107+
}
108+
109+
withType<KotlinCompile> {
110+
compilerOptions {
111+
jvmTarget.set(JvmTarget.JVM_17)
112+
}
113+
}
114+
}

gradle.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
org.gradle.jvmargs=-Xmx4G -Xms2G -Duser.language=en -XX:+UseParallelGC
2+
org.gradle.daemon=true
3+
org.gradle.parallel=true
4+
org.gradle.caching=true
5+
org.gradle.configuration-cache=true
6+
7+
systemProp.file.encoding=utf-8
8+
9+
archive_name=column-quick-swap
10+
id=column_quick_swap
11+
name=Column Quick Swap
12+
author=yarden-zamir
13+
description=Hold a key to quickly swap items between hotbar and inventory column above
14+
source=https://github.com/yarden-zamir/ColumnQuickSwap

gradle/wrapper/gradle-wrapper.jar

59.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Nov 08 16:42:54 CST 2024
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)