Skip to content

Commit

Permalink
1.4.39 and set to java 16
Browse files Browse the repository at this point in the history
  • Loading branch information
gnembon committed Jun 8, 2021
1 parent 9cf6573 commit a6a224b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 30 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

name: Pull Request Builds

on:
pull_request:
paths:
- "src/**"
on: [pull_request]

jobs:
Build:
Expand All @@ -15,10 +12,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'adopt'
java-version: 16
- name: Cache Gradle packages
uses: actions/cache@v2
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/devbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

name: Development Builds

on:
push:
paths:
- "src/**"
on: [push]

jobs:
Build:
Expand All @@ -15,10 +12,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'adopt'
java-version: 16
- name: Cache Gradle packages
uses: actions/cache@v2
with:
Expand Down
18 changes: 8 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.6-SNAPSHOT'
id 'fabric-loom' version '0.8-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -9,8 +9,8 @@ repositories {
}
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16

archivesBaseName = project.archives_base_name
version = project.minecraft_version+'-'+project.mod_version
Expand All @@ -35,13 +35,8 @@ dependencies {
processResources {
inputs.property "version", project.version

from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}

from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
filesMatching("fabric.mod.json") {
expand "version": project.mod_version
}
}

Expand All @@ -50,6 +45,9 @@ processResources {
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"

// Minecraft 1.17 (21w19a) upwards uses Java 16.
it.options.release = 16
}

// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use or https://modmuss50.me/fabric.html
minecraft_version=21w18a
yarn_mappings=21w18a+build.10
minecraft_version=1.17-pre2
yarn_mappings=1.17-pre2+build.5
loader_version=0.11.3
# check available versions on maven for the given minecraft version you are using
carpet_core_version=1.4.35+v210505
carpet_core_version=1.4.39+v210531

# Mod Properties
mod_version = 1.4.35
mod_version = 1.4.39
maven_group = carpet-autocraftingtable
archives_base_name = carpet-autocraftingtable

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
import net.minecraft.item.ItemStack;
import net.minecraft.util.collection.DefaultedList;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.gen.Accessor;

@Mixin(CraftingInventory.class)
public interface CraftingInventoryMixin
{
@Mutable
@Accessor("stacks")
void setInventory(DefaultedList<ItemStack> inventory);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "carpet_autocraftingtable.mixins",
"compatibilityLevel": "JAVA_8",
"compatibilityLevel": "JAVA_16",
"mixins": [
"CrashReport_noopMixin",
"CraftingInventoryMixin",
Expand Down

0 comments on commit a6a224b

Please sign in to comment.