Skip to content

Commit

Permalink
downgrade to grable
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Dec 27, 2023
1 parent cfb44bb commit 7922f4d
Show file tree
Hide file tree
Showing 28 changed files with 515 additions and 327 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
name: build

on: [push, pull_request]
on: [ pull_request, push ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17 ]
os: [ ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Cache Brachyura directory
uses: actions/cache@v2
with:
path: |
.brachyura
~/.brachyura
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }}
restore-keys: ${{ runner.os }}-brachyura

- name: Build with Brachyura
run: java -jar brachyura-bootstrap-0.jar build

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: build/libs
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: Make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
25 changes: 9 additions & 16 deletions .github/workflows/publish-curseforge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,29 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Cache Brachyura directory
uses: actions/cache@v2
with:
path: |
.brachyura
~/.brachyura
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }}
restore-keys: ${{ runner.os }}-brachyura

- name: Build with Brachyura
run: java -jar brachyura-bootstrap-0.jar build

- name: Publish artifacts to CurseForge
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build artifacts
run: ./gradlew build
- name: publish artifacts
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 552628
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

files: build/libs/!(*-@(dev|sources|javadoc)).jar
files: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar
version-type: beta
loaders: |
fabric
quilt
game-version-filter: releases

dependencies: |
Expand Down
22 changes: 6 additions & 16 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,16 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Cache Brachyura directory
uses: actions/cache@v2
with:
path: |
.brachyura
~/.brachyura
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }}
restore-keys: ${{ runner.os }}-brachyura

- name: Build with Brachyura
run: java -jar brachyura-bootstrap-0.jar build

- name: Publish artifacts to GitHub
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build artifacts
run: ./gradlew build
- name: Upload assets to GitHub
uses: AButler/[email protected]
with:
files: 'build/libs/*'
repo-token: ${{ secrets.GH_TOKEN }}
repo-token: ${{ secrets.GH_TOKEN }}
28 changes: 10 additions & 18 deletions .github/workflows/publish-modrinth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,31 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Cache Brachyura directory
uses: actions/cache@v2
with:
path: |
.brachyura
~/.brachyura
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }}
restore-keys: ${{ runner.os }}-brachyura

- name: Build with Brachyura
run: java -jar brachyura-bootstrap-0.jar build

- name: Publish artifacts to Modrinth
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build artifacts
run: ./gradlew build
- name: publish artifacts
uses: Kir-Antipov/[email protected]
with:
modrinth-id: CEvDfomf
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

files: build/libs/!(*-@(dev|sources|javadoc)).jar
files: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar
version-type: beta
loaders: |
fabric
quilt
game-version-filter: releases
game-version-filter: releases

dependencies: |
fabric-api
cloth-config
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@ Winterly is a Minecraft mod for fabric loader. The mod is revolving around winte

#### [Discord Server](https://discord.gg/DcemWeskeZ) | [Modrinth Page](https://modrinth.com/mod/winterly) | [CurseForge Page](https://curseforge.com/minecraft/mc-mods/winterly)

## Development
Unlike any other projects Winterly uses [brachyura build tool](https://github.com/CoolCrabs/brachyura), to set up development environment close you IDE and open
a command prompt or terminal, run `java -jar brachyura-bootstrap-0.jar idea`, replace `idea` with `jdt` if you use VS Code
or Eclipse, and `netbeans` if its Netbeans, reopen the IDE and allow it to import the project.

![Image](https://i.imgur.com/zRirSaD.png)
Binary file removed brachyura-bootstrap-0.jar
Binary file not shown.
45 changes: 0 additions & 45 deletions brachyurabootstrapconf.txt

This file was deleted.

73 changes: 73 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
plugins {
id "fabric-loom" version "1.4-SNAPSHOT"
}

version = project.mod_version
group = project.maven_group

repositories {
maven {
url "https://api.modrinth.com/maven"
content { includeGroup "maven.modrinth" }
}
maven { url "https://maven.ladysnake.org/releases" } //CCA
maven { url "https://maven.terraformersmc.com" } //trinkets
maven { url "https://maven.wispforest.io" } //owo-lib
maven { url "https://maven.shedaniel.me/" } //cloth-config
}

dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"

modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api}"
modImplementation "dev.emi:trinkets:${project.trinkets_version}"

// we don't include these because trinkets already does it
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}"
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}"

modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-world:${project.cca_version}")

// use modApi when owo lib is compatible with mc version
modCompileOnlyApi "io.wispforest:owo-lib:${project.owo_lib}"

modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config}") { exclude(group: "net.fabricmc.fabric-api") }
modApi "com.terraformersmc:modmenu:${project.modmenu_version}"

modLocalRuntime "maven.modrinth:here-be-no-dragons:1.0.0"
modLocalRuntime "dev.emi:emi-fabric:1.0.29+1.20.4"
}

loom {
accessWidenerPath = file("src/main/resources/winterly.accesswidener")
}

base {
archivesName = project.archives_base_name
}

processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}
17 changes: 0 additions & 17 deletions buildscript/buildscript.properties

This file was deleted.

Loading

0 comments on commit 7922f4d

Please sign in to comment.